#include <GeoPos.h>
Inheritance diagram for ECEF:

Public Methods | |
| ECEF () | |
| Construct a default ECEF (at the center of the Earth). | |
| ECEF (double x_, double y_, double z_) | |
| Construct a new ECEF. | |
| ECEF (UTM const &, ReferenceEllipsoid const &=GeoRef::WGS84) | |
| Copy constructor to convert from UTM. | |
| ECEF (LLA const &, ReferenceEllipsoid const &=GeoRef::WGS84) | |
| Copy constructor to convert from LLA. | |
| ECEF const & | operator= (UTM const &) |
| Convert from UTM to ECEF (using WGS84). | |
| ECEF const & | operator= (LLA const &) |
| Convert from UTM to ECEF (using WGS84). | |
| virtual std::string | typeString () const |
| Return a string representation of the type. | |
| virtual | ~ECEF () |
| bool | operator== (const Vector3 &v) const |
| Test for equality with another vectors. | |
| bool | operator!= (const Vector3 &v) const |
| Test for inequality with another vectors. | |
| void | set (double x_, double y_, double z_) |
| Set the vector components. | |
| double & | operator[] (int i) |
| Get a reference to vector component by numeric index. | |
| double | operator[] (int i) const |
| Get the value of a vector component by numeric index. | |
| double & | x () |
| Get a reference to the x-component. | |
| double | x () const |
| Get the value of the x-component. | |
| double & | y () |
| Get a reference to the y-component. | |
| double | y () const |
| Get the value of the y-component. | |
| double & | z () |
| Get a reference to the z-component. | |
| double | z () const |
| Get the value of the z-component. | |
| bool | valid () const |
| Test if all components are valid floating point values. | |
| bool | isNaN () const |
| Test if any components are NaN (not-a-number). | |
| bool | isZero () const |
| double | operator * (const Vector3 &rhs) const |
| Compute the dot product with another vector. | |
| const Vector3 | operator * (double rhs) const |
| Multiply by a scalar. | |
| const Vector3 | operator^ (const Vector3 &rhs) const |
| Compute the cross product with another vector. | |
| Vector3 & | operator *= (double rhs) |
| Unary multiply by a scalar. | |
| const Vector3 | operator/ (double rhs) const |
| Divide by a scalar. | |
| Vector3 & | operator/= (double rhs) |
| Unary divide by a scalar. | |
| const Vector3 | operator+ (const Vector3 &rhs) const |
| Binary vector addition. | |
| Vector3 & | operator+= (const Vector3 &rhs) |
| Unary vector addition. | |
| const Vector3 | operator- (const Vector3 &rhs) const |
| Binary vector subtraction. | |
| const Vector3 | operator- () const |
| Negation operator; returns the negative of the vector. | |
| Vector3 & | operator-= (const Vector3 &rhs) |
| Unary vector subtraction. | |
| double | length () const |
| Get the length of the vector = sqrt(v*v). | |
| double | length2 () const |
| Get the length squared of the vector = v*v. | |
| double | normalize () |
| Normalize the vector so that it has length unity. | |
| const Vector3 | normalized () const |
| Get a unit vector in the direction of this vector. | |
| Matrix3 | starMatrix () const |
| Compute the star matrix of this vector. | |
| void | bound (Vector3 &min, Vector3 &max) |
| Update bounding vectors. | |
| std::vector< double > | getElements () const |
| Get the components of this vector as a std::vector<double>. | |
| void | setElements (std::vector< double > const &v) |
| Set the components of this vector from a std::vector<double>. | |
| virtual std::string | asString () const |
| String representation. | |
| virtual void | serialize (Archive &) |
| Serialize to or from a data archive. | |
| virtual void | parseXML (const char *) |
| Parse the character data from an XML <Vector> tag. | |
| virtual void | convertXML () |
| Convert XML data to internal format prior to serialization. | |
Static Public Attributes | |
| const Vector3 | ZERO |
| Null vector. | |
| const Vector3 | XAXIS |
| Unit vector along the x-axis. | |
| const Vector3 | YAXIS |
| Unit vector along the y-axis. | |
| const Vector3 | ZAXIS |
| Unit vector along the z-axis. | |
Protected Attributes | |
| double | _x |
| The x component. | |
| double | _y |
| The y component. | |
| double | _z |
| The z component. | |
Friends | |
| Vector3 | operator * (double lhs, const Vector3 &rhs) |
| Multiply a vector by a scalar on the left. | |
| double | dot (const Vector3 &a, const Vector3 &b) |
| Compute the dot product of two vectors. | |
| const Vector3 | cross (const Vector3 &a, const Vector3 &b) |
| Compute the cross product of two vectors. | |
| SIMDATA_EXPORT std::ostream & | operator<< (std::ostream &output, const Vector3 &vec) |
| Format to an output string. | |
A geospatial coordinate class representing Earth Centered, Earth Fixed coordinates.
The XML format for this type is <ECEF> X Y Z </ECEF>
|
|
Construct a default ECEF (at the center of the Earth).
|
|
||||||||||||||||
|
Construct a new ECEF.
|
|
||||||||||||
|
Copy constructor to convert from UTM.
|
|
||||||||||||
|
Copy constructor to convert from LLA.
|
|
|
|
|
|
String representation.
Implements BaseType. Reimplemented in GeoPos. |
|
||||||||||||
|
Update bounding vectors.
The components of |
|
|
Convert XML data to internal format prior to serialization. This method is currently only called by the XML parser for Object classes. If another BaseType class requires this method, a call must be added to the appropriate XML handler in the parser. |
|
|
Get the components of this vector as a std::vector<double>.
|
|
|
Test if any components are NaN (not-a-number).
|
|
|
|
|
|
Get the length of the vector = sqrt(v*v).
|
|
|
Get the length squared of the vector = v*v.
|
|
|
Normalize the vector so that it has length unity.
|
|
|
Get a unit vector in the direction of this vector.
|
|
|
Multiply by a scalar.
|
|
|
Compute the dot product with another vector.
|
|
|
Unary multiply by a scalar.
|
|
|
Test for inequality with another vectors.
|
|
|
Binary vector addition.
|
|
|
Unary vector addition.
|
|
|
Negation operator; returns the negative of the vector.
|
|
|
Binary vector subtraction.
|
|
|
Unary vector subtraction.
|
|
|
Divide by a scalar.
|
|
|
Unary divide by a scalar.
|
|
|
Convert from UTM to ECEF (using WGS84).
|
|
|
Convert from UTM to ECEF (using WGS84).
|
|
|
Test for equality with another vectors.
|
|
|
Get the value of a vector component by numeric index. The index starts at zero (=x), and an IndexException is thrown for invalid indices.
|
|
|
Get a reference to vector component by numeric index. The index starts at zero (=x), and an IndexException is thrown for invalid indices.
|
|
|
Compute the cross product with another vector.
|
|
|
Parse the character data from an XML <Vector> tag. The three components must be separated by whitespace. Reimplemented from BaseType. Reimplemented in GeoPos. |
|
|
Serialize to or from a data archive.
Reimplemented from BaseType. Reimplemented in GeoPos. |
|
||||||||||||||||
|
Set the vector components.
|
|
|
Set the components of this vector from a std::vector<double>.
|
|
|
Compute the star matrix of this vector.
|
|
|
Return a string representation of the type.
Reimplemented from Vector3. |
|
|
Test if all components are valid floating point values.
|
|
|
Get the value of the x-component.
|
|
|
Get a reference to the x-component.
|
|
|
Get the value of the y-component.
|
|
|
Get a reference to the y-component.
|
|
|
Get the value of the z-component.
|
|
|
Get a reference to the z-component.
|
|
||||||||||||
|
Compute the cross product of two vectors.
|
|
||||||||||||
|
Compute the dot product of two vectors.
|
|
||||||||||||
|
Multiply a vector by a scalar on the left.
|
|
||||||||||||
|
Format to an output string.
|
|
|
The x component.
|
|
|
The y component.
|
|
|
The z component.
|
|
|
Unit vector along the x-axis.
|
|
|
Unit vector along the y-axis.
|
|
|
Unit vector along the z-axis.
|
|
|
Null vector.
|
|
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage. Generated on Tue Oct 14 12:06:40 2003, using Doxygen 1.2.18. |