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

panda/src/mathutil/look_at_src.h File Reference

#include "look_at_src.I"

Go to the source code of this file.

Functions

BEGIN_PUBLISH EXPCL_PANDA void heads_up (FLOATNAME(LMatrix3)&mat, const FLOATNAME(LVector3)&fwd, const FLOATNAME(LVector3)&up=FLOATNAME(LVector3)::up(), CoordinateSystem cs=CS_default)
 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.

EXPCL_PANDA void look_at (FLOATNAME(LMatrix3)&mat, const FLOATNAME(LVector3)&fwd, const FLOATNAME(LVector3)&up=FLOATNAME(LVector3)::up(), CoordinateSystem cs=CS_default)
 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.

INLINE_MATHUTIL void heads_up (FLOATNAME(LMatrix3)&mat, const FLOATNAME(LVector3)&fwd, CoordinateSystem cs)
INLINE_MATHUTIL void look_at (FLOATNAME(LMatrix3)&mat, const FLOATNAME(LVector3)&fwd, CoordinateSystem cs)
INLINE_MATHUTIL void heads_up (FLOATNAME(LMatrix4)&mat, const FLOATNAME(LVector3)&fwd, const FLOATNAME(LVector3)&up=FLOATNAME(LVector3)::up(), CoordinateSystem cs=CS_default)
INLINE_MATHUTIL void look_at (FLOATNAME(LMatrix4)&mat, const FLOATNAME(LVector3)&fwd, const FLOATNAME(LVector3)&up=FLOATNAME(LVector3)::up(), CoordinateSystem cs=CS_default)
INLINE_MATHUTIL void heads_up (FLOATNAME(LMatrix4)&mat, const FLOATNAME(LVector3)&fwd, CoordinateSystem cs)
INLINE_MATHUTIL void look_at (FLOATNAME(LMatrix4)&mat, const FLOATNAME(LVector3)&fwd, CoordinateSystem cs)
INLINE_MATHUTIL void heads_up (FLOATNAME(LQuaternion)&quat, const FLOATNAME(LVector3)&fwd, const FLOATNAME(LVector3)&up=FLOATNAME(LVector3)::up(), CoordinateSystem cs=CS_default)
INLINE_MATHUTIL void look_at (FLOATNAME(LQuaternion)&quat, const FLOATNAME(LVector3)&fwd, const FLOATNAME(LVector3)&up=FLOATNAME(LVector3)::up(), CoordinateSystem cs=CS_default)
INLINE_MATHUTIL void heads_up (FLOATNAME(LQuaternion)&quat, const FLOATNAME(LVector3)&fwd, CoordinateSystem cs)
INLINE_MATHUTIL void look_at (FLOATNAME(LQuaternion)&quat, const FLOATNAME(LVector3)&fwd, CoordinateSystem cs)


Detailed Description

Definition in file look_at_src.h.


Function Documentation

INLINE_MATHUTIL void heads_up FLOATNAME(LQuaternion)&  quat,
const FLOATNAME(LVector3)&  fwd,
CoordinateSystem  cs
 

Definition at line 79 of file look_at_src.I.

INLINE_MATHUTIL void heads_up FLOATNAME(LQuaternion)&  quat,
const FLOATNAME(LVector3)&  fwd,
const FLOATNAME(LVector3)&  up = FLOATNAME(LVector3)::up(),
CoordinateSystem  cs = CS_default
 

Definition at line 63 of file look_at_src.I.

INLINE_MATHUTIL void heads_up FLOATNAME(LMatrix4)&  mat,
const FLOATNAME(LVector3)&  fwd,
CoordinateSystem  cs
 

Definition at line 51 of file look_at_src.I.

INLINE_MATHUTIL void heads_up FLOATNAME(LMatrix4)&  mat,
const FLOATNAME(LVector3)&  fwd,
const FLOATNAME(LVector3)&  up = FLOATNAME(LVector3)::up(),
CoordinateSystem  cs = CS_default
 

Definition at line 35 of file look_at_src.I.

INLINE_MATHUTIL void heads_up FLOATNAME(LMatrix3)&  mat,
const FLOATNAME(LVector3)&  fwd,
CoordinateSystem  cs
 

Definition at line 23 of file look_at_src.I.

BEGIN_PUBLISH EXPCL_PANDA 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.

References FLOATTYPE, and y.

INLINE_MATHUTIL void look_at FLOATNAME(LQuaternion)&  quat,
const FLOATNAME(LVector3)&  fwd,
CoordinateSystem  cs
 

Definition at line 85 of file look_at_src.I.

Referenced by herc_idle().

INLINE_MATHUTIL void look_at FLOATNAME(LQuaternion)&  quat,
const FLOATNAME(LVector3)&  fwd,
const FLOATNAME(LVector3)&  up = FLOATNAME(LVector3)::up(),
CoordinateSystem  cs = CS_default
 

Definition at line 71 of file look_at_src.I.

INLINE_MATHUTIL void look_at FLOATNAME(LMatrix4)&  mat,
const FLOATNAME(LVector3)&  fwd,
CoordinateSystem  cs
 

Definition at line 57 of file look_at_src.I.

INLINE_MATHUTIL void look_at FLOATNAME(LMatrix4)&  mat,
const FLOATNAME(LVector3)&  fwd,
const FLOATNAME(LVector3)&  up = FLOATNAME(LVector3)::up(),
CoordinateSystem  cs = CS_default
 

Definition at line 43 of file look_at_src.I.

INLINE_MATHUTIL void look_at FLOATNAME(LMatrix3)&  mat,
const FLOATNAME(LVector3)&  fwd,
CoordinateSystem  cs
 

Definition at line 29 of file look_at_src.I.

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

References x.


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