MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
Loading...
Searching...
No Matches
TSL3DHelper Class Reference

Detailed Description

Set of helper methods used for geometry calculations.

Deprecated
Deprecated as of MapLink 11.1. Advised to use MapLink Earth SDK instead.

Static Public Member Functions

static double distance (const TSL3DCoord &coord1, const TSL3DCoord &coord2)
 
static bool rotate (TSL3DCoord &point, const TSL3DCoord &rotationPoint, double angle)
 
static double squareDistance (const TSL3DCoord &coord1, const TSL3DCoord &coord2)
 
static bool translate (TSL3DBoundingBox &bBox, double dx, double dy, double dz)
 
static bool translate (TSL3DCoord &coord, double dx, double dy, double dz)
 

Member Function Documentation

◆ distance()

static double TSL3DHelper::distance ( const TSL3DCoord & coord1,
const TSL3DCoord & coord2 )
static

Calculates the distance in metres between two 3D points

Parameters
coord1position to calculate distance from
coord2position to calculate distance to

◆ rotate()

static bool TSL3DHelper::rotate ( TSL3DCoord & point,
const TSL3DCoord & rotationPoint,
double angle )
static

Rotate a point.

The angle is specified in radians, with positive values indicating an anti-clockwise rotation. The rotation is performed about the vector from the centre of the earth to the point specified by rotationPoint.

Parameters
pointthe coordinate to rotate
angleangle for rotation (in radians)
rotationPointthe point around which the rotation is performed.
Returns
true if the rotation has been performed successfully. False otherwise.

◆ squareDistance()

static double TSL3DHelper::squareDistance ( const TSL3DCoord & coord1,
const TSL3DCoord & coord2 )
static

Calculates the square distance in metres between two 3D points

Parameters
coord1position to calculate square distance from
coord2position to calculate square distance to

◆ translate() [1/2]

static bool TSL3DHelper::translate ( TSL3DBoundingBox & bBox,
double dx,
double dy,
double dz )
static

Translate the given bounding box.

Parameters
bBoxbounding box to translate
dxdelta in x dimension
dydelta in y dimension
dzdelta in z dimension

◆ translate() [2/2]

static bool TSL3DHelper::translate ( TSL3DCoord & coord,
double dx,
double dy,
double dz )
static

Translate a coordinate.

Parameters
coordcoordinate to translate
dxdelta in x dimension
dydelta in y dimension
dzdelta in z dimension