Method RotateBy
- Namespace
- GeometryHelper.Geometry
- Assembly
- GeometryHelper.dll
RotateBy(double, GeoVector3)
Rotates this vector around an axis through the origin.
public GeoVector3 RotateBy(double angleRad, GeoVector3 axis)
Parameters
angleRaddoubleThe rotation angle in radians, counter-clockwise seen from the axis tip.
axisGeoVector3The rotation axis; it need not be normalized.
Returns
- GeoVector3
The rotated vector.
Exceptions
- ArgumentException
Thrown when the axis has a coordinate that is not a finite number.
- InvalidOperationException
Thrown when the axis has zero length.