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
- InvalidOperationException
Thrown when the axis has zero length.