Click or drag to resize
DigitalRuneMatrix33DCreateRotation Method (Vector3D, Double)
Creates a rotation matrix from axis and angle.

Namespace: DigitalRune.Mathematics.Algebra
Assembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax
public static Matrix33D CreateRotation(
	Vector3D axis,
	double angle
)

Parameters

axis
Type: DigitalRune.Mathematics.AlgebraVector3D
The rotation axis. (Does not need to be normalized.)
angle
Type: SystemDouble
The rotation angle in radians.

Return Value

Type: Matrix33D
The created rotation matrix.
Exceptions
ExceptionCondition
ArgumentException The axis vector has 0 length.
See Also