Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::UprightFrame Class Reference

Coordinate frame expressed in Euler angles. More...

#include <UprightFrame.h>

List of all members.

Public Member Functions

void deserialize (class BinaryInput &b)
UprightFrame operator * (const float k) const
 operator CoordinateFrame () const
UprightFrame operator+ (const UprightFrame &other) const
void serialize (class BinaryOutput &b) const
CoordinateFrame toCoordinateFrame () const
 UprightFrame (const CoordinateFrame &cframe)
 UprightFrame (const Vector3 &t=Vector3::zero(), float p=0, float y=0)

Static Public Member Functions

static void unwrapYaw (UprightFrame *a, int N)

Public Attributes

float pitch
Vector3 translation
float yaw


Detailed Description

Coordinate frame expressed in Euler angles.

Unlike a G3D::Quat, UprightFrame always keeps the reference frame from rolling about its own z axis. Particularly useful for cameras.

See also:
G3D::CoordinateFrame, G3D::Matrix4, G3D::PhysicsFrame, G3D::UprightSpline, G3D::UprightSplineManipulator


Constructor & Destructor Documentation

G3D::UprightFrame::UprightFrame ( const Vector3 t = Vector3::zero(),
float  p = 0,
float  y = 0 
) [inline]

G3D::UprightFrame::UprightFrame ( const CoordinateFrame cframe  ) 


Member Function Documentation

void G3D::UprightFrame::deserialize ( class BinaryInput b  ) 

UprightFrame G3D::UprightFrame::operator * ( const float  k  )  const

Required for use with spline.

G3D::UprightFrame::operator CoordinateFrame (  )  const [inline]

Supports implicit cast to CoordinateFrame.

UprightFrame G3D::UprightFrame::operator+ ( const UprightFrame other  )  const

Required for use with spline.

void G3D::UprightFrame::serialize ( class BinaryOutput b  )  const

CoordinateFrame G3D::UprightFrame::toCoordinateFrame (  )  const

static void G3D::UprightFrame::unwrapYaw ( UprightFrame a,
int  N 
) [static]

Unwraps the yaw values in the elements of the array such that they still represent the same angles but strictly increase/decrease without wrapping about zero.

For use with Spline<UprightFrame>


Member Data Documentation

-pi/2 < pitch < pi/2 in radians about the X-axis

In radians about the Y-axis.


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:48 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo