Click or drag to resize
DigitalRuneMatrix44FCreateRotation Method (Vector3F, Single)
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 Matrix44F CreateRotation(
	Vector3F axis,
	float angle
)

Parameters

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

Return Value

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