![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
Set of helper methods used for geometry calculations.
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) |
|
static |
Calculates the distance in metres between two 3D points
coord1 | position to calculate distance from |
coord2 | position to calculate distance to |
|
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.
point | the coordinate to rotate |
angle | angle for rotation (in radians) |
rotationPoint | the point around which the rotation is performed. |
|
static |
Calculates the square distance in metres between two 3D points
coord1 | position to calculate square distance from |
coord2 | position to calculate square distance to |
|
static |
Translate the given bounding box.
bBox | bounding box to translate |
dx | delta in x dimension |
dy | delta in y dimension |
dz | delta in z dimension |
|
static |
Translate a coordinate.
coord | coordinate to translate |
dx | delta in x dimension |
dy | delta in y dimension |
dz | delta in z dimension |