VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtVectorGeoc3D Class Reference

VectorGeoc3D is a direction in 3-space, i.e. a vector in geocentric coordinates.

Inheritance diagram for DtVectorGeoc3D:
Inheritance graph
[legend]

Public Member Functions

 DtVectorGeoc3D (const DtVector &vect)
 
 DtVectorGeoc3D (const DtVectorGeoc3D &orig)
 
 ~DtVectorGeoc3D ()
 
DtVectorGeoc3Doperator= (const DtVectorGeoc3D &orig)
 
DtVector geocVector () const
 
DtVectorGeoc3D makeCopy () const
 
DtVector3D makeVector3DAtLoc (const DtLocation3D loc) const
 
DtVectorGeoc3D crossVectorGeoc3D (const DtVectorGeoc3D &vec) const
 
double dotVectorGeoc3D (const DtVectorGeoc3D &vec) const
 
double getLength () const
 
bool operator== (const DtVectorGeoc3D &) const
 
bool operator!= (const DtVectorGeoc3D &orig) const
 
DtVectorGeoc3D getScaled (const double scale) const
 
DtVectorGeoc3D getNegated (void) const
 
DtVectorGeoc3D getUnit (void) const
 
- Public Member Functions inherited from DtAsciiSerializable
 DtAsciiSerializable ()
 
 DtAsciiSerializable (const DtAsciiSerializable &orig)
 
virtual ~DtAsciiSerializable ()
 
virtual std::string objectTypeC () const
 
virtual void init (void *userData)
 

Protected Attributes

DtVector myGeocVector
 
DtString objectType () const
 
DtString serialize ()
 
bool deserialize (const DtString &data)
 
static DtAsciiSerializablecreator ()
 

Constructor & Destructor Documentation

DtVectorGeoc3D::DtVectorGeoc3D ( const DtVector vect)
DtVectorGeoc3D::DtVectorGeoc3D ( const DtVectorGeoc3D orig)
DtVectorGeoc3D::~DtVectorGeoc3D ( )

Member Function Documentation

DtVectorGeoc3D& DtVectorGeoc3D::operator= ( const DtVectorGeoc3D orig)
DtVector DtVectorGeoc3D::geocVector ( ) const
DtString DtVectorGeoc3D::objectType ( ) const
virtual

Inherited from DtAsciiSerializable.

Returns "DtVectorGeoc3D"

Implements DtAsciiSerializable.

DtString DtVectorGeoc3D::serialize ( )
virtual

Returns a string serialized version of this class.

Implements DtAsciiSerializable.

bool DtVectorGeoc3D::deserialize ( const DtString data)
virtual

Returns true if it could fill its members with the data contained in the string. False otherwise.

Implements DtAsciiSerializable.

static DtAsciiSerializable* DtVectorGeoc3D::creator ( )
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.

bool DtVectorGeoc3D::operator== ( const DtVectorGeoc3D ) const
bool DtVectorGeoc3D::operator!= ( const DtVectorGeoc3D orig) const
inline

Member Data Documentation

DtVector DtVectorGeoc3D::myGeocVector
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)