![]() |
VR-Forces 5.0.3 Developer's Guide
|
DtVector2D is a vector in earth-relative coordinates, e.g. east-north. Its direction in space depends on where on the earth it is attached (like topocentric coordinates). It contains the 3rd component of the DtVector3D, "down", but it is always zero.

Static Public Member Functions | |
| static DtAsciiSerializable * | creator () |
Static Public Member Functions inherited from DtVector3D | |
| static DtAsciiSerializable * | creator () |
| DtVector2D::DtVector2D | ( | ) |
Constructor etc. intended for the script interface, not scripts themselves.
The constructor assumes that the vect holds north-east-down values. Constructing a 2D vector from a 3D vector just ignores (zeros) the down component.
| DtVector2D::DtVector2D | ( | const DtVector & | vect | ) |
| DtVector2D::DtVector2D | ( | const DtVector3D & | vect | ) |
| DtVector2D::~DtVector2D | ( | ) |
Constructor that is visible to scripts. Values in meters.
| DtVector2D& DtVector2D::operator= | ( | const DtVector3D & | orig | ) |
|
virtual |
Returns "DtVector2D".
Reimplemented from DtVector3D.
|
static |
Returns a new object of this type with default values.
| void DtVector2D::setNorth | ( | const double | north | ) |
| void DtVector2D::setEast | ( | const double | east | ) |
| DtVector2D DtVector2D::addVector2D | ( | const DtVector3D & | vec | ) |
This fn zeros out the down component.
| double DtVector2D::crossVector2D | ( | const DtVector3D & | vec | ) |
The cross product returns a scalar instead of a vector.
| double DtVector2D::dotVector2D | ( | const DtVector3D & | vec | ) |
Returns dot prod of north & east components.
| DtVector2D DtVector2D::addOffset2D | ( | const DtVectorOffset3D & | vec | ) |
This derived fn zeros the up component first.
| bool DtVector2D::operator== | ( | const DtVector2D & | ) | const |
|
inline |