Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/mathutil/look_at_src.cxx File Reference

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.


Detailed Description

Definition in file look_at_src.cxx.


Function Documentation

INLINE_MATHUTIL FLOATNAME LMatrix3   )  const
 

Definition at line 22 of file look_at_src.cxx.

References 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.

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.

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.

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().


Generated on Fri May 2 00:45:54 2003 for Panda by doxygen1.3