Vamos_Geometry Namespace Reference


Classes

class  Ac3d_Exception
class  No_File
class  Not_An_Ac3d_File
class  Malformed_Ac3d_File
class  Ac3d
class  Gl_Texture_Image
class  Facade
class  Handle
class  Bad_Inertia_Tensor
class  Inertia_Tensor
class  Interpolator
class  Linear_Interpolator
class  Material
class  Missing_Sound_File
class  slScheduler
class  Sample
class  Spline
class  Missing_Texture_File
class  Texture_Image
class  Singular_Matrix
class  Three_Matrix
class  Three_Vector
class  Two_Point

Typedefs

typedef Handle< MaterialMaterial_Handle

Enumerations

enum  Side { LEFT, RIGHT }

Functions

void rotate_elements (double mat[3][3], int i, int j, int k, int l, double h, double s, double tau)
void swap (double &a, double &b)
void rotate_elements (double mat[3][3], int i, int j, int k, int l, double param_h, double param_s, double tau)
const Vamos_Geometry::Three_Vector operator * (const Three_Vector &vec, const Three_Matrix &mat)
const Vamos_Geometry::Three_Matrix operator * (const Three_Matrix &mat1, const Three_Matrix &mat2)
const Vamos_Geometry::Three_Matrix operator * (double factor, const Three_Matrix &mat)
const Vamos_Geometry::Three_Matrix operator * (const Three_Matrix &mat, double factor)
std::ostream & operator<< (std::ostream &os, Three_Matrix mat)
void swap (double &a, double &b)
void euler_angles (const Three_Matrix &mat, double *phi, double *theta, double *psi)
const Vamos_Geometry::Three_Vector operator+ (const Three_Vector &vec1, const Three_Vector &vec2)
const Vamos_Geometry::Three_Vector operator- (const Three_Vector &vec)
const Vamos_Geometry::Three_Vector operator- (const Three_Vector &vec1, const Three_Vector &vec2)
const Vamos_Geometry::Three_Vector operator * (const Three_Vector &vec, double factor)
const Vamos_Geometry::Three_Vector operator * (double factor, const Three_Vector &vec)
const Vamos_Geometry::Three_Vector operator/ (const Three_Vector &vec, double factor)
const Vamos_Geometry::Three_Vector operator/ (double factor, const Three_Vector &vec)
bool operator== (const Three_Vector &vec1, const Three_Vector &vec2)
std::ostream & operator<< (std::ostream &os, const Three_Vector &vec)
std::istream & operator>> (std::istream &is, Three_Vector &vec)
Vamos_Geometry::Two_Point operator+ (Two_Point p1, Two_Point p2)
Vamos_Geometry::Two_Point operator+ (Two_Point p, double scalar)
Vamos_Geometry::Two_Point operator+ (double scalar, Two_Point p)
Vamos_Geometry::Two_Point operator- (Two_Point p1, Two_Point p2)
Vamos_Geometry::Two_Point operator- (Two_Point p, double scalar)
Vamos_Geometry::Two_Point operator- (double scalar, Two_Point p)
Vamos_Geometry::Two_Point operator * (Two_Point p1, Two_Point p2)
Vamos_Geometry::Two_Point operator * (Two_Point p, double scalar)
Vamos_Geometry::Two_Point operator * (double scalar, Two_Point p)
Vamos_Geometry::Two_Point operator/ (Two_Point p1, Two_Point p2)
Vamos_Geometry::Two_Point operator/ (double scalar, Two_Point p)
Vamos_Geometry::Two_Point operator/ (Two_Point p, double scalar)
std::ostream & operator<< (std::ostream &os, const Two_Point &point)
std::istream & operator>> (std::istream &is, Two_Point &point)
double rad_to_deg (double rad)
double deg_to_rad (double deg)
double rad_s_to_rpm (double rad_s)
double rpm_to_rad_s (double rpm)
double m_s_to_km_h (double m_s)
double km_h_to_m_s (double km_h)
template<typename T>
clip (T value, T low, T high)
template<typename T>
sign (T value)
const Three_Vector operator * (const Three_Matrix &mat, const Three_Vector &vec)

Variables

const double pi = 3.14159265358979323846
const double two_pi = 2.0 * pi
const double root_2 = 1.41421356237309504880


Typedef Documentation

typedef Handle<Material> Vamos_Geometry::Material_Handle
 

Definition at line 28 of file Material.h.


Enumeration Type Documentation

enum Vamos_Geometry::Side
 

Enumerator:
LEFT 
RIGHT 

Definition at line 38 of file Constants.h.


Function Documentation

template<typename T>
T Vamos_Geometry::clip value,
low,
high
 

Definition at line 43 of file Conversions.h.

Referenced by Vamos_Body::Suspension::current_camber(), CAMERA::ExtractFrustum(), Vamos_Body::Differential::get_anti_slip_torque(), and Vamos_Body::Rear_View_Mirror::set_viewport().

double Vamos_Geometry::deg_to_rad double  deg  )  [inline]
 

Definition at line 35 of file Conversions.h.

References pi.

Referenced by Vamos_Body::Suspension::camber(), Vamos_Body::Suspension::caster(), Vamos_Body::Rear_View_Mirror::set_viewport(), Vamos_Body::Suspension::steer(), and Vamos_Body::Suspension::toe().

void Vamos_Geometry::euler_angles const Three_Matrix &  mat,
double *  phi,
double *  theta,
double *  psi
 

Definition at line 434 of file Three_Matrix.cc.

double Vamos_Geometry::km_h_to_m_s double  km_h  )  [inline]
 

Definition at line 41 of file Conversions.h.

double Vamos_Geometry::m_s_to_km_h double  m_s  )  [inline]
 

Definition at line 40 of file Conversions.h.

Referenced by Vamos_Body::Gl_Car::draw_dashboard(), Vamos_Body::Gl_Car::draw_dashboard_extras(), and VAMOSWORLD::DrawHUD().

const Three_Vector Vamos_Geometry::operator * const Three_Matrix &  mat,
const Three_Vector &  vec
[inline]
 

Definition at line 86 of file Three_Matrix.h.

Two_Point Vamos_Geometry::operator * double  scalar,
Two_Point  p
 

Definition at line 63 of file Two_Point.cc.

Two_Point Vamos_Geometry::operator * Two_Point  p,
double  scalar
 

Definition at line 58 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

Two_Point Vamos_Geometry::operator * Two_Point  p1,
Two_Point  p2
 

Definition at line 53 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

const Three_Vector Vamos_Geometry::operator * double  factor,
const Three_Vector &  vec
 

Definition at line 233 of file Three_Vector.cc.

const Three_Vector Vamos_Geometry::operator * const Three_Vector &  vec,
double  factor
 

Definition at line 226 of file Three_Vector.cc.

const Three_Matrix Vamos_Geometry::operator * const Three_Matrix &  mat,
double  factor
 

Definition at line 346 of file Three_Matrix.cc.

const Three_Matrix Vamos_Geometry::operator * double  factor,
const Three_Matrix &  mat
 

Definition at line 339 of file Three_Matrix.cc.

const Three_Matrix Vamos_Geometry::operator * const Three_Matrix &  mat1,
const Three_Matrix &  mat2
 

Definition at line 322 of file Three_Matrix.cc.

const Three_Vector Vamos_Geometry::operator * const Three_Vector &  vec,
const Three_Matrix &  mat
 

Definition at line 308 of file Three_Matrix.cc.

Two_Point Vamos_Geometry::operator+ double  scalar,
Two_Point  p
 

Definition at line 31 of file Two_Point.cc.

Two_Point Vamos_Geometry::operator+ Two_Point  p,
double  scalar
 

Definition at line 26 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

Two_Point Vamos_Geometry::operator+ Two_Point  p1,
Two_Point  p2
 

Definition at line 21 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

const Three_Vector Vamos_Geometry::operator+ const Three_Vector &  vec1,
const Three_Vector &  vec2
 

Definition at line 202 of file Three_Vector.cc.

Two_Point Vamos_Geometry::operator- double  scalar,
Two_Point  p
 

Definition at line 47 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

Two_Point Vamos_Geometry::operator- Two_Point  p,
double  scalar
 

Definition at line 42 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

Two_Point Vamos_Geometry::operator- Two_Point  p1,
Two_Point  p2
 

Definition at line 37 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

const Three_Vector Vamos_Geometry::operator- const Three_Vector &  vec1,
const Three_Vector &  vec2
 

Definition at line 218 of file Three_Vector.cc.

const Three_Vector Vamos_Geometry::operator- const Three_Vector &  vec  ) 
 

Definition at line 210 of file Three_Vector.cc.

Two_Point Vamos_Geometry::operator/ Two_Point  p,
double  scalar
 

Definition at line 79 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

Two_Point Vamos_Geometry::operator/ double  scalar,
Two_Point  p
 

Definition at line 74 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

Two_Point Vamos_Geometry::operator/ Two_Point  p1,
Two_Point  p2
 

Definition at line 69 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

const Three_Vector Vamos_Geometry::operator/ double  factor,
const Three_Vector &  vec
 

Definition at line 249 of file Three_Vector.cc.

const Three_Vector Vamos_Geometry::operator/ const Three_Vector &  vec,
double  factor
 

Definition at line 240 of file Three_Vector.cc.

std::ostream & Vamos_Geometry::operator<< std::ostream &  os,
const Two_Point &  point
 

Definition at line 86 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

std::ostream & Vamos_Geometry::operator<< std::ostream &  os,
const Three_Vector &  vec
 

Definition at line 264 of file Three_Vector.cc.

std::ostream & Vamos_Geometry::operator<< std::ostream &  os,
Three_Matrix  mat
 

Definition at line 353 of file Three_Matrix.cc.

bool Vamos_Geometry::operator== const Three_Vector &  vec1,
const Three_Vector &  vec2
 

Definition at line 255 of file Three_Vector.cc.

std::istream & Vamos_Geometry::operator>> std::istream &  is,
Two_Point &  point
 

Definition at line 93 of file Two_Point.cc.

References Vamos_Geometry::Two_Point::x, and Vamos_Geometry::Two_Point::y.

std::istream & Vamos_Geometry::operator>> std::istream &  is,
Three_Vector &  vec
 

Definition at line 273 of file Three_Vector.cc.

double Vamos_Geometry::rad_s_to_rpm double  rad_s  )  [inline]
 

Definition at line 37 of file Conversions.h.

References pi.

Referenced by Vamos_Body::Gl_Car::draw_dashboard(), Vamos_Body::Gl_Car::draw_dashboard_extras(), and VAMOSWORLD::DrawHUD().

double Vamos_Geometry::rad_to_deg double  rad  )  [inline]
 

Definition at line 34 of file Conversions.h.

References pi.

Referenced by Vamos_Body::Frame::axis_angle(), and Vamos_Body::Tire_Friction::friction_forces().

void Vamos_Geometry::rotate_elements double  mat[3][3],
int  i,
int  j,
int  k,
int  l,
double  param_h,
double  param_s,
double  tau
 

Definition at line 252 of file Three_Matrix.cc.

void Vamos_Geometry::rotate_elements double  mat[3][3],
int  i,
int  j,
int  k,
int  l,
double  h,
double  s,
double  tau
 

Definition at line 252 of file Three_Matrix.cc.

double Vamos_Geometry::rpm_to_rad_s double  rpm  )  [inline]
 

Definition at line 38 of file Conversions.h.

References pi.

Referenced by Vamos_Body::Engine::set_torque_curve().

template<typename T>
T Vamos_Geometry::sign value  ) 
 

Definition at line 46 of file Conversions.h.

Referenced by solve_quadratic().

void Vamos_Geometry::swap double &  a,
double &  b
 

Definition at line 381 of file Three_Matrix.cc.

void Vamos_Geometry::swap double &  a,
double &  b
 

Definition at line 381 of file Three_Matrix.cc.


Variable Documentation

const double Vamos_Geometry::pi = 3.14159265358979323846
 

Definition at line 28 of file Constants.h.

Referenced by deg_to_rad(), Vamos_Body::Suspension::displace(), BACKDROP::DrawClouds(), BACKDROP::DrawSkyGradient(), TRACK::GetBezier(), rad_s_to_rpm(), rad_to_deg(), and rpm_to_rad_s().

const double Vamos_Geometry::root_2 = 1.41421356237309504880
 

Definition at line 35 of file Constants.h.

Referenced by Vamos_Geometry::Material::bump().

const double Vamos_Geometry::two_pi = 2.0 * pi
 

Definition at line 30 of file Constants.h.

Referenced by Vamos_Geometry::Material::bump().


Generated on Thu Oct 19 04:13:40 2006 by  doxygen 1.4.6