Table of Contents

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

angleRad double

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

axis GeoVector3

The rotation axis; it need not be normalized.

Returns

GeoVector3

The rotated vector.

Exceptions

InvalidOperationException

Thrown when the axis has zero length.