Click or drag to resize

MathHelperRotateAboutAxis Method

imbVeles Framework: imbSCI | imbACE | imbNLP | imbWEM | imbWBI
Rotate given vector of angle in radians about a specified axis.

Namespace:  netDxf
Assembly:  netDXF.Standard (in netDXF.Standard.dll) Version: 2.1.1
Syntax
C#
public static Vector3 RotateAboutAxis(
	Vector3 v,
	Vector3 axis,
	double angle
)
Request Example View Source

Parameters

v
Type: netDxfVector3
Vector to rotate.
axis
Type: netDxfVector3
Rotation axis. This vector should be normalized.
angle
Type: SystemDouble
Rotation angle in radians.

Return Value

Type: Vector3
A copy of the vector, rotated.
Remarks
Method provided by: Idelana. Original Author: Paul Bourke ( http://paulbourke.net/geometry/rotate/ )
See Also