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
axisGeoVector3The rotation axis; it need not be normalized.
angleRaddoubleThe angle in radians, counter-clockwise seen from the axis tip.
Returns
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
axisOriginGeoPoint3A point on the rotation axis.
axisDirectionGeoVector3The direction of the axis; it need not be normalized.
angleRaddoubleThe angle in radians, counter-clockwise seen from the axis tip.