br_euler
typedef
angles.h
for precise declaration and ordering)
br_angle a First angle
br_angle b Second angle
br_angle c Third angle
br_uint_8 order Rotation order (static/relative)
BrMatrix34ToEuler()
204
, BrMatrix4ToEuler()
221
, BrQuatToEuler()
314
.
br_transform
339
.br_angle a
br_angle b
br_angle c
br_uint_8 order
BR_EULER
) indicate the order in which rotations occur about which axes. The last letter indicates whether the rotations are static or relative.
BR_EULER_XYZ_S
is equivalent to the matrix transform:
BR_EULER_XZY_R
is equivalent to the matrix transform:
br_transform
339
.BrQuatToEuler()
314
, BrMatrix34ToEuler()
204
, BrTransformToTransform()
343
.
BrEulerToQuat()
120
, BrEulerToMatrix34()
120
, and BrEulerToMatrix4()
121
as described below.
Also see BrTransformToTransform()
343.
BrEulerToQuat()
br_euler
118
to a quaternion, that would have the same transformational effect.Declaration:
br_quat* BrEulerToQuat(br_quat* q, br_euler* euler)
Arguments:
br_quat * q
A pointer to the destination quaternion to receive the conversion.
br_euler * euler
A pointer to the source Euler angle.
Result:
br_quat *
Returns q
for convenience.
BrEulerToMatrix34()
br_euler
118
to a 3D affine matrix, that would have the same transformational effect.Declaration:
br_matrix34* BrEulerToMatrix34(br_matrix34* mat, const br_euler* euler)
Arguments:
br_matrix34 * mat
A pointer to the destination matrix to receive the conversion.
const br_euler * euler
A pointer to the source Euler angle.
Result:
br_matrix34 *
Returns mat
for convenience.
BrEulerToMatrix4()
br_euler
118
to a 3D affine matrix, that would have the same transformational effect.Declaration:
br_matrix4* BrEulerToMatrix4(br_matrix4* mat, const br_euler* euler)
Arguments:
br_matrix4 * mat
A pointer to the destination matrix to receive the conversion.
const br_euler * euler
A pointer to the source Euler angle.
Result:
br_matrix4 *
Returns mat
for convenience.
Remarks: Equivalent to
BrEulerToMatrix34()
120
.
BR_ANGLE_DEG()
or
BR_ANGLE_RAD()
) or structure assignment. Zero is a valid order.