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

Static Public Member Functions

static DtVector findCenter (const std::vector< DtVector > &vertexList)
 
static void pack (const double pos[3], float pospack[4])
 
static void unpack (const float pospack[4], double pos[3])
 
static float closestSegmentPointToTestPoint (const DtVector &start, const DtVector &end, const DtVector &testPoint, DtVector &result)
 
static void setLatDtDegMinSecFromDegrees (DtDegMinSec &dmslat, double deg)
 
static void setLonDtDegMinSecFromDegrees (DtDegMinSec &dmslon, double deg)
 
static void utmToGeodetic (int zone, bool isNorth, double easting, double northing, DtGeodeticCoord &result)
 

Static Protected Member Functions

static void setDtDegMinSecFromDegrees (DtDegMinSec &dms, double deg)
 

Member Function Documentation

static DtVector makVrv::coordUtils::findCenter ( const std::vector< DtVector > &  vertexList)
static

Finds the center point of given list of points.

Parameters
vertexList- List of vertices used to find center.
Returns
- DtVector that contains the center of the vertexList
static void makVrv::coordUtils::pack ( const double  pos[3],
float  pospack[4] 
)
static

Pack some position expressed as 3 doubles into a position expressed as 4 floats.

static void makVrv::coordUtils::unpack ( const float  pospack[4],
double  pos[3] 
)
static

Unpack some position expressed as 4 floats into a position expressed as 3 doubles.

static float makVrv::coordUtils::closestSegmentPointToTestPoint ( const DtVector &  start,
const DtVector &  end,
const DtVector &  testPoint,
DtVector &  result 
)
static

Find the closest point on a line segment to a specified test point and return it through the parameter list. The function itself returns the distanceSq from the test point to the closest point.

static void makVrv::coordUtils::setLatDtDegMinSecFromDegrees ( DtDegMinSec &  dmslat,
double  deg 
)
static

Create a DtDegMinSec instance (needed for VR-Link's UTM Reference Points) from the specified degrees latitude value.

static void makVrv::coordUtils::setLonDtDegMinSecFromDegrees ( DtDegMinSec &  dmslon,
double  deg 
)
static

Create a DtDegMinSec instance (needed for VR-Link's UTM Reference Points) from the specified degrees longitude value.

static void makVrv::coordUtils::utmToGeodetic ( int  zone,
bool  isNorth,
double  easting,
double  northing,
DtGeodeticCoord &  result 
)
static

Convert UTM to a geodetic coord. Note that this assumes that the zone has been validated (1-60); and that standard offsets are used (500,000 adding to easting, 10,000 added to northing if below the equator)

static void makVrv::coordUtils::setDtDegMinSecFromDegrees ( DtDegMinSec &  dms,
double  deg 
)
staticprotected

Create a DtDegMinSec instance (needed for VR-Link's UTM Reference Points) from the specified degrees value (does not fill in the direction field = this is an intermediate step for setLatDtDegMinSecFromDegrees() and setLonDtDegMinSecFromDegrees()


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

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)