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)
 

Detailed Description

For firing position search functions.

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. The inPoints vector is sorted abased on the position of the first location in the pair. The second location in the pair is not used. The outPoints vector is a copy of the inPoints vector, but sorted.

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 Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)