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 | Public Attributes
makVrv::DtSphericalVertex< T > Class Template Reference

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

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

Public Member Functions

 DtSphericalVertex (T inclination, T azimuth, T radius)
 
 DtSphericalVertex (const DtVector3< T > &cartesian)
 
bool operator< (const DtSphericalVertex< T > &rhs) const
 
DtVector3< T > toCartesian () const
 

Public Attributes

myInclination
 
myAzimuth
 
myRadius
 

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 Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)