Public Member Functions |
| | DtVector2D () |
| | Constructor etc.
|
| | DtVector2D (const DtVector &vect) |
| | DtVector2D (const DtVector3D &vect) |
| | ~DtVector2D () |
| DtVector2D & | operator= (const DtVector3D &orig) |
| | DtVector2D (const double north, const double east) |
| | Constructor that is visible to scripts. Values in meters.
|
| DtString | objectType () const |
| | Returns "DtVector2D".
|
| void | setNorth (const double north) |
| void | setEast (const double east) |
| DtVector2D | addVector2D (const DtVector3D &vec) |
| | This fn zeros out the down component.
|
| double | crossVector2D (const DtVector3D &vec) |
| | The cross product returns a scalar instead of a vector.
|
| double | dotVector2D (const DtVector3D &vec) |
| | Returns dot prod of north & east components.
|
| DtVector2D | addOffset2D (const DtVectorOffset3D &vec) |
| | This derived fn zeros the up component first.
|
| bool | operator== (const DtVector2D &) const |
| bool | operator!= (const DtVector2D &orig) const |
| | DtVector3D () |
| | Constructor etc.
|
| | DtVector3D (const DtVector &vect) |
| | DtVector3D (const DtVector3D &vect) |
| | ~DtVector3D () |
| DtVector | nedVector () const |
| | DtVector3D (const double north, const double east, const double down) |
| | Constructor that is visible to scripts. Values in meters.
|
| void | setFromGeocentricVector (const DtVector &geocVec, DtLocation3D &origin) |
| | This function sets the vector from a Geocentric vector.
|
| DtVector3D | 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.
|
| void | setNorthEastDown (const double north, const double east, const double down) |
| | Reset the vector from north, east, and down (in meters).
|
| void | setBearingInclRange (const double bearing, const double inclination, const double range) |
| | Reset the vector from bearing, inclination (both in radians), and range in meters.
|
| double | getBearing (void) const |
| | Set and get functions for different representations.
|
| double | getInclination (void) const |
| | void setBearing(const double bearing);
|
| double | getRange (void) const |
| | void setInclination(const double inclination);
|
| double | getNorth (void) const |
| | void setRange(const double range);
|
| double | getEast (void) const |
| | void setNorth(double const north);
|
| double | getDown (void) const |
| | void setEast(double const east);
|
| DtVector3D | getScaled (const double scale) const |
| | void setDown(double const down);
|
| DtVector3D | getNegated (void) const |
| | Components are north-east-down.
|
| DtVector3D | getUnit (void) const |
| | Components are north-east-down.
|
| DtVector3D | addVector3D (const DtVector3D &vec) const |
| | Adds another vector3D.
|
| DtVector3D | crossVector3D (const DtVector3D &vec) const |
| | Takes the cross product of given vector with this one.
|
| double | dotVector3D (const DtVector3D &vec) const |
| | Takes the dot product of the given vector with this one.
|
| DtVector3D | addOffset (const DtVectorOffset3D &offset) const |
| | Adds an offset to this vector.
|
| double | headingDiff (const DtVector3D &vec) const |
| | Determines the difference in headings from this vector to the given vector, in radians.
|
| DtVectorGeoc3D | makeVectorGeoc3DAtLoc (const DtLocation3D &loc) const |
| | Makes a geocentric vector equivalent to this vector at the given location on the earth.
|
| bool | operator== (const DtVector3D &) const |
| | Components are north-east-down.
|
| bool | operator!= (const DtVector3D &orig) const |
| | Components are north-east-down.
|
| 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.
|
| | 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 () |
| virtual std::string | objectTypeC () const |
| | Returns a std::string version of the objectType.
|
| virtual void | init (void *userData) |
| | This function is called right after the object is constructed during the deserialization process, but before deserialize() is called.
|
! 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.