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
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)
 

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.


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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)