Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
OPC_Common.h File Reference

Go to the source code of this file.

Classes

class  CollisionAABB
 
class  QuantizedAABB
 

Macros

#define GREATER(x, y)   fabsf(x) > (y)
 
#define __OPC_COMMON_H__
 
#define GREATER(x, y)   fabsf(x) > (y)
 

Functions

inline_ void TransformPoint (Point &dest, const Point &source, const Matrix3x3 &rot, const Point &trans)
 Quickly rotates & translates a vector. More...
 

Detailed Description

Contains common classes & defs used in OPCODE.

Author
Pierre Terdiman
Date
March, 20, 2001

Definition in file OPC_Common.h.

Macro Definition Documentation

#define __OPC_COMMON_H__

Definition at line 22 of file Opcode.h.

#define GREATER (   x,
  y 
)    fabsf(x) > (y)
#define GREATER (   x,
  y 
)    fabsf(x) > (y)

Definition at line 28 of file Opcode.h.

Function Documentation

inline_ void TransformPoint ( Point dest,
const Point source,
const Matrix3x3 rot,
const Point trans 
)

Quickly rotates & translates a vector.

Definition at line 94 of file OPC_Common.h.

References Matrix3x3::m, Point::x, Point::y, and Point::z.

95  {
96  dest.x = trans.x + source.x * rot.m[0][0] + source.y * rot.m[1][0] + source.z * rot.m[2][0];
97  dest.y = trans.y + source.x * rot.m[0][1] + source.y * rot.m[1][1] + source.z * rot.m[2][1];
98  dest.z = trans.z + source.x * rot.m[0][2] + source.y * rot.m[1][2] + source.z * rot.m[2][2];
99  }