Go to the source code of this file.
Functions | |
INLINE_MATHUTIL | FLOATNAME (LMatrix3) make_xi_mat(const FLOATNAME(LVector2)&x) |
void | heads_up (FLOATNAME(LMatrix3)&mat, const FLOATNAME(LVector3)&fwd, const FLOATNAME(LVector3)&up, CoordinateSystem cs) |
Given two vectors defining a forward direction and an up vector, constructs the matrix that rotates things from the defined coordinate system to y-forward and z-up. | |
void | look_at (FLOATNAME(LMatrix3)&mat, const FLOATNAME(LVector3)&fwd, const FLOATNAME(LVector3)&up, CoordinateSystem cs) |
Given two vectors defining a forward direction and an up vector, constructs the matrix that rotates things from the defined coordinate system to y-forward and z-up. |
Definition in file look_at_src.cxx.
|
Definition at line 22 of file look_at_src.cxx. References x. |
|
Given two vectors defining a forward direction and an up vector, constructs the matrix that rotates things from the defined coordinate system to y-forward and z-up. The up vector will be rotated to z-up first, then the forward vector will be rotated as nearly to y-forward as possible. This will only have a different effect from look_at() if the forward and up vectors are not perpendicular. Definition at line 75 of file look_at_src.cxx. |
|
Given two vectors defining a forward direction and an up vector, constructs the matrix that rotates things from the defined coordinate system to y-forward and z-up. The forward vector will be rotated to y-forward first, then the up vector will be rotated as nearly to z-up as possible. This will only have a different effect from heads_up() if the forward and up vectors are not perpendicular. Definition at line 221 of file look_at_src.cxx. Referenced by BillboardEffect::make(). |