Creates rotation matrix to rotate an object around X, Y and Z axes.

Namespace:  AForge.Math
Assembly:  AForge.Math (in AForge.Math.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public static Matrix4x4 CreateFromYawPitchRoll(
	float yaw,
	float pitch,
	float roll
)

Parameters

yaw
Type: System..::.Single
Rotation angle around Y axis in radians.
pitch
Type: System..::.Single
Rotation angle around X axis in radians.
roll
Type: System..::.Single
Rotation angle around Z axis in radians.

Return Value

Returns rotation matrix to rotate an object around all 3 axes.

Remarks

Note:The routine assumes roll-pitch-yaw rotation order, when creating rotation matrix, i.e. an object is first rotated around Z axis, then around X axis and finally around Y axis.

See Also