VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions
vrfTrl Namespace Reference

Functions

void ArrangePositionsLeftToRight2D (const std::vector< std::pair< DtLocation3D, DtLocation3D > > &inPoints, const DtLocation3D &originPoint, const DtLocation3D &destinationPoint, std::vector< std::pair< DtLocation3D, DtLocation3D > > &outPoints)
 
DtLocation3D FindAreaCenter2D (const std::list< DtLocation3D > &targetAreaCorners)
 
void MakeRelativeSearchArea2D (const DtLocation3D &origin, const DtLocation3D &referencePoint, double widthSideSide, double depthForwardBack, std::list< DtLocation3D > &searchAreaCorners)
 
void ConvertToLocalVectorList (const std::list< DtLocation3D > &sourceLocations, DtLocalVertexList &resultsList, DtTerrainInterface *pTerrainIf, bool bClamp=true)
 

Function Documentation

void vrfTrl::ArrangePositionsLeftToRight2D ( const std::vector< std::pair< DtLocation3D, DtLocation3D > > &  inPoints,
const DtLocation3D originPoint,
const DtLocation3D destinationPoint,
std::vector< std::pair< DtLocation3D, DtLocation3D > > &  outPoints 
)

Sort the given points left to right, perpendicular to reference line from origin to destination.

DtLocation3D vrfTrl::FindAreaCenter2D ( const std::list< DtLocation3D > &  targetAreaCorners)

Given a list of Location3D objects, return a DtLocation3D representing 2D center. Center is an average of latitude and longitude.

void vrfTrl::MakeRelativeSearchArea2D ( const DtLocation3D origin,
const DtLocation3D referencePoint,
double  widthSideSide,
double  depthForwardBack,
std::list< DtLocation3D > &  searchAreaCorners 
)

Given an origin point and a reference point, make an area about the origin facing the reference point.

void vrfTrl::ConvertToLocalVectorList ( const std::list< DtLocation3D > &  sourceLocations,
DtLocalVertexList resultsList,
DtTerrainInterface pTerrainIf,
bool  bClamp = true 
)

Given a list of locations in a local coordinate system, clamp them to terrain height.


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)