![]() |
VR-Forces 4.1.1 Class Documentation
|
VectorGeoc3D is a direction in 3-space, i.e. More...

Public Member Functions | |
| DtVectorGeoc3D (const DtVector &vect) | |
| DtVectorGeoc3D (const DtVectorGeoc3D &orig) | |
| ~DtVectorGeoc3D () | |
| DtVectorGeoc3D & | operator= (const DtVectorGeoc3D &orig) |
| DtVector | geocVector () const |
| DtVectorGeoc3D | makeCopy () const |
| The assignment operator and copy constructor above, are useful in the expected way for C++ code, but Lua just copies the references to objects, so a special copy function is needed. | |
| DtVector3D | makeVector3DAtLoc (const DtLocation3D loc) const |
| Makes a direction vector at a particular location on the earth, given the location and this geocentric direction vector. | |
| DtVectorGeoc3D | crossVectorGeoc3D (const DtVectorGeoc3D &vec) const |
| Takes the cross product of given vector with this one. | |
| double | dotVectorGeoc3D (const DtVectorGeoc3D &vec) const |
| Takes the dot product of the given vector with this one. | |
| double | getLength () const |
| Returns the length of the vector. | |
| DtVectorGeoc3D | getScaled (const double scale) const |
| Vector modification functions. | |
| DtVectorGeoc3D | getNegated (void) const |
| Vector modification functions. | |
| DtVectorGeoc3D | getUnit (void) const |
| Vector modification functions. | |
Public Member Functions inherited from DtAsciiSerializable | |
| DtAsciiSerializable () | |
| The implementer of this interface should be sure to create a creator function to create an empty object that returns a pointer to this interface. | |
| DtAsciiSerializable (const DtAsciiSerializable &orig) | |
| virtual | ~DtAsciiSerializable () |
Protected Attributes | |
| DtVector | myGeocVector |
| DtString | objectType () const |
| Inherited from DtAsciiSerializable. | |
| DtString | serialize () |
| Returns a string serialized version of this class. | |
| bool | deserialize (const DtString &data) |
| Returns true if it could fill its members with the data contained in the string. | |
| static DtAsciiSerializable * | creator () |
| Returns a new object of this type with default values. | |
VectorGeoc3D is a direction in 3-space, i.e.
a vector in geocentric coordinates
| DtVectorGeoc3D::DtVectorGeoc3D | ( | const DtVector & | vect | ) |
| DtVectorGeoc3D::DtVectorGeoc3D | ( | const DtVectorGeoc3D & | orig | ) |
| DtVectorGeoc3D::~DtVectorGeoc3D | ( | ) |
| DtVectorGeoc3D& DtVectorGeoc3D::operator= | ( | const DtVectorGeoc3D & | orig | ) |
| DtVector DtVectorGeoc3D::geocVector | ( | ) | const |
|
virtual |
|
virtual |
Returns a string serialized version of this class.
Implements DtAsciiSerializable.
Returns true if it could fill its members with the data contained in the string.
False otherwise.
Implements DtAsciiSerializable.
|
static |
Returns a new object of this type with default values.
| DtVectorGeoc3D DtVectorGeoc3D::makeCopy | ( | ) | const |
The assignment operator and copy constructor above, are useful in the expected way for C++ code, but Lua just copies the references to objects, so a special copy function is needed.
| DtVector3D DtVectorGeoc3D::makeVector3DAtLoc | ( | const DtLocation3D | loc | ) | const |
Makes a direction vector at a particular location on the earth, given the location and this geocentric direction vector.
| DtVectorGeoc3D DtVectorGeoc3D::getScaled | ( | const double | scale | ) | const |
Vector modification functions.
Return a new vector.
| DtVectorGeoc3D DtVectorGeoc3D::getNegated | ( | void | ) | const |
Vector modification functions.
Return a new vector.
| DtVectorGeoc3D DtVectorGeoc3D::getUnit | ( | void | ) | const |
Vector modification functions.
Return a new vector.
| DtVectorGeoc3D DtVectorGeoc3D::crossVectorGeoc3D | ( | const DtVectorGeoc3D & | vec | ) | const |
Takes the cross product of given vector with this one.
| double DtVectorGeoc3D::dotVectorGeoc3D | ( | const DtVectorGeoc3D & | vec | ) | const |
Takes the dot product of the given vector with this one.
| double DtVectorGeoc3D::getLength | ( | ) | const |
Returns the length of the vector.
|
protected |