#include <VehicleDefines.h>
|
static void | CalculatePassengerPosition (float &x, float &y, float &z, float *o, float transX, float transY, float transZ, float transO) |
|
static void | CalculatePassengerOffset (float &x, float &y, float &z, float *o, float transX, float transY, float transZ, float transO) |
|
TransportBase::TransportBase |
( |
| ) |
|
|
inlineprotected |
virtual TransportBase::~TransportBase |
( |
| ) |
|
|
inlineprotectedvirtual |
virtual void TransportBase::CalculatePassengerOffset |
( |
float & |
x, |
|
|
float & |
y, |
|
|
float & |
z, |
|
|
float * |
o = NULL |
|
) |
| const |
|
pure virtual |
This method transforms supplied global coordinates into local offsets.
Implemented in Vehicle, and Transport.
static void TransportBase::CalculatePassengerOffset |
( |
float & |
x, |
|
|
float & |
y, |
|
|
float & |
z, |
|
|
float * |
o, |
|
|
float |
transX, |
|
|
float |
transY, |
|
|
float |
transZ, |
|
|
float |
transO |
|
) |
| |
|
inlinestatic |
151 float inx =
x, iny =
y;
152 y = (iny - inx * std::tan(transO)) / (std::cos(transO) + std::sin(transO) * std::tan(transO));
153 x = (inx + iny * std::tan(transO)) / (std::cos(transO) + std::sin(transO) * std::tan(transO));
static float NormalizeOrientation(float o)
Definition: Position.h:211
G3D::int16 z
Definition: Vector3int16.h:46
G3D::int16 y
Definition: Vector2int16.h:38
G3D::int16 x
Definition: Vector2int16.h:37
virtual void TransportBase::CalculatePassengerPosition |
( |
float & |
x, |
|
|
float & |
y, |
|
|
float & |
z, |
|
|
float * |
o = NULL |
|
) |
| const |
|
pure virtual |
This method transforms supplied transport offsets into global coordinates.
Implemented in Vehicle, and Transport.
static void TransportBase::CalculatePassengerPosition |
( |
float & |
x, |
|
|
float & |
y, |
|
|
float & |
z, |
|
|
float * |
o, |
|
|
float |
transX, |
|
|
float |
transY, |
|
|
float |
transZ, |
|
|
float |
transO |
|
) |
| |
|
inlinestatic |
134 float inx =
x, iny =
y, inz =
z;
138 x = transX + inx * std::cos(transO) - iny * std::sin(transO);
139 y = transY + iny * std::cos(transO) + inx * std::sin(transO);
static float NormalizeOrientation(float o)
Definition: Position.h:211
G3D::int16 z
Definition: Vector3int16.h:46
G3D::int16 y
Definition: Vector2int16.h:38
G3D::int16 x
Definition: Vector2int16.h:37
The documentation for this class was generated from the following file: