Public Types | Public Member Functions | Public Attributes

xform_2d_t Struct Reference
[Core Geometry Objects]

#include <xform_2d.h>

List of all members.

Public Types

typedef point2d_t< float > point_t
typedef rect2d_t< float > rect_t

Public Member Functions

 xform_2d_t (void) throw ()
void clear (void) throw ()
void setIdentity (void) throw ()
void setZRotate (float phi) throw ()
void setTranslate (float x, float y) throw ()
void scale (float r) throw ()
void scaleX (float rx) throw ()
void scaleY (float ry) throw ()
void setToProductOf (const xform_2d_t &left, const xform_2d_t &right) throw ()
void transformPoint (const point_t &in, point_t &out) const throw ()
void transformRect (const rect_t &in, rect_t &out) const throw ()
void setToInverseOf (const xform_2d_t &T) throw ()
void dump (const char *title) const throw ()

Public Attributes

float t00
float t01
float t10
float t11
float dx
float dy

Detailed Description

2D transform object - basically a 2x2 rotation matrix + translation

Definition at line 47 of file xform_2d.h.

Member Typedef Documentation

Definition at line 48 of file xform_2d.h.

typedef rect2d_t<float> xform_2d_t::rect_t

Definition at line 49 of file xform_2d.h.

Constructor & Destructor Documentation

xform_2d_t::xform_2d_t ( void   )  throw () [inline]

Definition at line 52 of file xform_2d.h.

Member Function Documentation

void xform_2d_t::clear ( void   )  throw () [inline]

Definition at line 53 of file xform_2d.h.

void xform_2d_t::setIdentity ( void   )  throw () [inline]

Definition at line 54 of file xform_2d.h.

void xform_2d_t::setZRotate ( float  phi  )  throw () [inline]

Definition at line 60 of file xform_2d.h.

void xform_2d_t::setTranslate ( float  x,
float  y 
) throw () [inline]

Definition at line 68 of file xform_2d.h.

void xform_2d_t::scale ( float  r  )  throw () [inline]

Definition at line 76 of file xform_2d.h.

void xform_2d_t::scaleX ( float  rx  )  throw () [inline]

Definition at line 82 of file xform_2d.h.

void xform_2d_t::scaleY ( float  ry  )  throw () [inline]

Definition at line 89 of file xform_2d.h.

void xform_2d_t::setToProductOf ( const xform_2d_t left,
const xform_2d_t right 
) throw () [inline]

Definition at line 96 of file xform_2d.h.

void xform_2d_t::transformPoint ( const point_t in,
point_t out 
) const throw () [inline]

Definition at line 107 of file xform_2d.h.

void xform_2d_t::transformRect ( const rect_t in,
rect_t out 
) const throw ()

Definition at line 42 of file xform_2d.cpp.

void xform_2d_t::setToInverseOf ( const xform_2d_t T  )  throw ()

Definition at line 105 of file xform_2d.cpp.

void xform_2d_t::dump ( const char *  title  )  const throw () [inline]

Definition at line 118 of file xform_2d.h.

Member Data Documentation

Definition at line 125 of file xform_2d.h.

Definition at line 126 of file xform_2d.h.

Definition at line 127 of file xform_2d.h.

Definition at line 128 of file xform_2d.h.

Definition at line 129 of file xform_2d.h.

Definition at line 130 of file xform_2d.h.

The documentation for this struct was generated from the following files: