VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
makVrv::DtSphericalVertex< T > Class Template Reference

Class to hold a vertex in spherical coordinates during geometry construction. More...

Public Member Functions

 DtSphericalVertex (T inclination, T azimuth, T radius)
 CTOR Instantiates a new spherical vertex.
 DtSphericalVertex (const DtVector3< T > &cartesian)
 Construct from a cartesian vertex Constructs a new Spherical Vertex, equivalent to the given cartesian vertex.
bool operator< (const DtSphericalVertex< T > &rhs) const
 Less-than operator Less-than operator for DtSphericalVertex's Exists so a DtSphericalVertex can be used with std::map.
DtVector3< T > toCartesian () const
 Returns the equivalent cartesian coordinate Converts this DtSphericalVertex to Cartesian coordinates.

Public Attributes

myInclination
 The vertex's representative inclination.
myAzimuth
 The vertex's representative azimuth.
myRadius
 The vertex's representative radius.

Detailed Description

template<class T>
class makVrv::DtSphericalVertex< T >

Class to hold a vertex in spherical coordinates during geometry construction.

Constructor & Destructor Documentation

template<class T>
makVrv::DtSphericalVertex< T >::DtSphericalVertex ( inclination,
azimuth,
radius 
)

CTOR Instantiates a new spherical vertex.

Parameters
inclinationthe vertex's inclination
azimuththe vertex's azimuth
radiusthe vertex's radius
template<class T>
makVrv::DtSphericalVertex< T >::DtSphericalVertex ( const DtVector3< T > &  cartesian)

Construct from a cartesian vertex Constructs a new Spherical Vertex, equivalent to the given cartesian vertex.

Parameters
cartesianthe cartesian vertex to construct this Spherical Vertex for

Member Function Documentation

template<class T>
bool makVrv::DtSphericalVertex< T >::operator< ( const DtSphericalVertex< T > &  rhs) const

Less-than operator Less-than operator for DtSphericalVertex's Exists so a DtSphericalVertex can be used with std::map.

Parameters
rhsthe DtSphericalVertex to compare with
Returns
true if this vertex is less than rhs
template<class T>
DtVector3<T> makVrv::DtSphericalVertex< T >::toCartesian ( ) const

Returns the equivalent cartesian coordinate Converts this DtSphericalVertex to Cartesian coordinates.

Returns
the equivalent Cartesian coordinates for this DtSphericalVertex

Member Data Documentation

template<class T>
T makVrv::DtSphericalVertex< T >::myInclination

The vertex's representative inclination.

template<class T>
T makVrv::DtSphericalVertex< T >::myAzimuth

The vertex's representative azimuth.

template<class T>
T makVrv::DtSphericalVertex< T >::myRadius

The vertex's representative radius.


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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)