Table of Contents

Method RotationAxis

Namespace
GeometryHelper.Geometry
Assembly
GeometryHelper.dll

RotationAxis(GeoVector3, double)

Creates a rotation around an arbitrary axis through the world origin.

public static GeoTransform3 RotationAxis(GeoVector3 axis, double angleRad)

Parameters

axis GeoVector3

The rotation axis; it need not be normalized.

angleRad double

The angle in radians, counter-clockwise seen from the axis tip.

Returns

GeoTransform3

Exceptions

ArgumentException

Thrown when the axis has zero length.

RotationAxis(GeoPoint3, GeoVector3, double)

Creates a rotation around an arbitrary axis line, so the rotation is not restricted to axes passing through the world origin.

public static GeoTransform3 RotationAxis(GeoPoint3 axisOrigin, GeoVector3 axisDirection, double angleRad)

Parameters

axisOrigin GeoPoint3

A point on the rotation axis.

axisDirection GeoVector3

The direction of the axis; it need not be normalized.

angleRad double

The angle in radians, counter-clockwise seen from the axis tip.

Returns

GeoTransform3