Luna::Simd::transform3d_rotation_x_f4x4

float4x4 transform3d_rotation_x_f4x4(f32 rotation)

Builds a 3D affine matrix from rotation along X axis.

S := SIN(rotation)
C := COS(rotation)
ret[0].x := 1
ret[0].y := 0
ret[0].z := 0
ret[0].w := 0
ret[1].x := 0
ret[1].y := C
ret[1].z := S
ret[1].w := 0
ret[2].x := 0
ret[2].y := -S
ret[2].z := C
ret[2].w := 0
ret[3].x := 0
ret[3].y := 0
ret[3].z := 0
ret[3].w := 1