TORCS  1.3.9
The Open Racing Car Simulator
Transform Class Reference

#include <Transform.h>

Collaboration diagram for Transform:

Public Member Functions

 Transform ()
 
 Transform (const float m[16])
 
 Transform (const double m[16])
 
Point operator() (const Point &p) const
 
const MatrixgetBasis () const
 
const PointgetOrigin () const
 
void setValue (const float m[16])
 
void setValue (const double m[16])
 
void setIdentity ()
 
Transformoperator*= (const Transform &t)
 
void translate (const Vector &v)
 
void rotate (const Quaternion &q)
 
void scale (Scalar x, Scalar y, Scalar z)
 
void invert (const Transform &t)
 
void mult (const Transform &t1, const Transform &t2)
 
void multInverseLeft (const Transform &t1, const Transform &t2)
 

Private Types

enum  {
  IDENTITY = 0x00, TRANSLATION = 0x01, ROTATION = 0x02, SCALING = 0x04,
  LINEAR = ROTATION | SCALING, AFFINE = TRANSLATION | LINEAR
}
 

Private Attributes

Matrix basis
 
Point origin
 
unsigned int type
 

Detailed Description

Definition at line 41 of file Transform.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
IDENTITY 
TRANSLATION 
ROTATION 
SCALING 
LINEAR 
AFFINE 

Definition at line 72 of file Transform.h.

Constructor & Destructor Documentation

◆ Transform() [1/3]

Transform::Transform ( )
inline

Definition at line 43 of file Transform.h.

◆ Transform() [2/3]

Transform::Transform ( const float  m[16])
inline

Definition at line 44 of file Transform.h.

Here is the call graph for this function:

◆ Transform() [3/3]

Transform::Transform ( const double  m[16])
inline

Definition at line 45 of file Transform.h.

Here is the call graph for this function:

Member Function Documentation

◆ getBasis()

const Matrix& Transform::getBasis ( ) const
inline

Definition at line 53 of file Transform.h.

◆ getOrigin()

const Point& Transform::getOrigin ( ) const
inline

Definition at line 54 of file Transform.h.

◆ invert()

void Transform::invert ( const Transform t)

Definition at line 73 of file Transform.cpp.

Here is the call graph for this function:

◆ mult()

void Transform::mult ( const Transform t1,
const Transform t2 
)

Definition at line 81 of file Transform.cpp.

◆ multInverseLeft()

void Transform::multInverseLeft ( const Transform t1,
const Transform t2 
)

Definition at line 87 of file Transform.cpp.

Here is the call graph for this function:

◆ operator()()

Point Transform::operator() ( const Point p) const
inline

Definition at line 47 of file Transform.h.

Here is the call graph for this function:

◆ operator*=()

Transform & Transform::operator*= ( const Transform t)

Definition at line 45 of file Transform.cpp.

◆ rotate()

void Transform::rotate ( const Quaternion q)

Definition at line 57 of file Transform.cpp.

◆ scale()

void Transform::scale ( Scalar  x,
Scalar  y,
Scalar  z 
)

Definition at line 62 of file Transform.cpp.

◆ setIdentity()

void Transform::setIdentity ( )

Definition at line 67 of file Transform.cpp.

Here is the call graph for this function:

◆ setValue() [1/2]

void Transform::setValue ( const float  m[16])

Definition at line 33 of file Transform.cpp.

Here is the call graph for this function:

◆ setValue() [2/2]

void Transform::setValue ( const double  m[16])

Definition at line 39 of file Transform.cpp.

Here is the call graph for this function:

◆ translate()

void Transform::translate ( const Vector v)

Definition at line 52 of file Transform.cpp.

Member Data Documentation

◆ basis

Matrix Transform::basis
private

Definition at line 81 of file Transform.h.

◆ origin

Point Transform::origin
private

Definition at line 82 of file Transform.h.

◆ type

unsigned int Transform::type
private

Definition at line 83 of file Transform.h.


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