rotateMat

Gives the rotation matrix.

  1. float[4][4] rotateMat(float angle, float x, float y, float z)
    @safe nothrow pure
    float[4][4]
    rotateMat
    (
    float angle
    ,
    float x
    ,
    float y
    ,
    float z
    )
  2. float[4][4] rotateMat(float[4][4] mat, float angle, float x, float y, float z)

Parameters

angle float

Angle rotation.

x float

X-axis rotate factor.

y float

Y-axis rotate factor.

z float

Z-axis rotate factor.

Return Value

Type: float[4][4]

Rotation matrix.

Also See

$(HREF https://en.wikipedia.org/wiki/Rotation_matrix, Rotation matrix - Wikipedia)

$(ROTATE_IMG)

Meta