| Matrix44DCreateRotation Method (Vector3D, Double) |
Creates a rotation matrix from axis and angle.
Namespace: DigitalRune.Mathematics.AlgebraAssembly: DigitalRune.Mathematics (in DigitalRune.Mathematics.dll) Version: 1.14.0.0 (1.14.0.14427)
Syntax public static Matrix44D CreateRotation(
Vector3D axis,
double angle
)
Public Shared Function CreateRotation (
axis As Vector3D,
angle As Double
) As Matrix44D
public:
static Matrix44D CreateRotation(
Vector3D axis,
double angle
)
static member CreateRotation :
axis : Vector3D *
angle : float -> Matrix44D
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:
Matrix44DThe created rotation matrix.
Exceptions See Also