Altus Mapping Engine JavaScript API Reference - v2.0.ut.2153.g60764257e - Tuesday May 16, 2022 SDK Documentation | Builds | BA3 Home
AltusUnified::GeoBoundingBox Class Reference

Public Member Functions

 GeoBoundingBox ()
 Constructor More...
 
 GeoBoundingBox (double minX, double minY, double maxX, double maxY)
 Constructor More...
 
 GeoBoundingBox (vec2d min, vec2d max)
 Constructor More...
 
 GeoBoundingBox (VectorVec2d points)
 Constructor More...
 
bool intersects (BoundingBox a, BoundingBox b)
 Does the passed BoundingBox a intersect box b? More...
 
bool intersects (BoundingBox box)
 Does the passed BoundingBox intersect this one? More...
 
bool contains (vec2d point)
 Does this BoundingBox contain a point? More...
 
BoundingBox toBoundingBox ()
 Constructs and returns a BoundingBox with the bounds of this GeoBoundingBox More...
 
bool crossesMeridian ()
 
VectorGeoBoundingBox splitAcrossMeridian ()
 
vec2d bottomLeft ()
 The bottom left corner of this GeoBoundingBox as a vec2d. More...
 
void bottomLeft_set (vec2d val)
 
vec2d topRight ()
 The top right corner of this GeoBoundingBox as a vec2d. More...
 
void topRight_set (vec2d val)
 

Constructor & Destructor Documentation

AltusUnified::GeoBoundingBox::GeoBoundingBox ( )

Constructor

AltusUnified::GeoBoundingBox::GeoBoundingBox ( double  minX,
double  minY,
double  maxX,
double  maxY 
)

Constructor

Parameters
minXThe minimum x value in decimal degrees
minYThe minimum y value in decimal degrees
maxXThe maximum x value in decimal degrees
maxYThe maximum y value in decimal degrees
AltusUnified::GeoBoundingBox::GeoBoundingBox ( vec2d  min,
vec2d  max 
)

Constructor

Parameters
minvec2d, minX and minY
maxvec2d, maxX and maxY
AltusUnified::GeoBoundingBox::GeoBoundingBox ( VectorVec2d  points)

Constructor

Parameters
pointsA vector of vec2d's containing the minimum and maximum points of the box, in decimal degrees: point1 (minX, minY), point2 (maxX, maxY)

Member Function Documentation

vec2d AltusUnified::GeoBoundingBox::bottomLeft ( )

The bottom left corner of this GeoBoundingBox as a vec2d.

void AltusUnified::GeoBoundingBox::bottomLeft_set ( vec2d  val)
bool AltusUnified::GeoBoundingBox::contains ( vec2d  point)

Does this BoundingBox contain a point?

Parameters
pointA vec2d describing the point to test
bool AltusUnified::GeoBoundingBox::crossesMeridian ( )
bool AltusUnified::GeoBoundingBox::intersects ( BoundingBox  a,
BoundingBox  b 
)

Does the passed BoundingBox a intersect box b?

Parameters
aBoundingBox a
bBoundingBox b
bool AltusUnified::GeoBoundingBox::intersects ( BoundingBox  box)

Does the passed BoundingBox intersect this one?

Parameters
boxA BoundingBox to test for intersection with this box
VectorGeoBoundingBox AltusUnified::GeoBoundingBox::splitAcrossMeridian ( )
BoundingBox AltusUnified::GeoBoundingBox::toBoundingBox ( )

Constructs and returns a BoundingBox with the bounds of this GeoBoundingBox

vec2d AltusUnified::GeoBoundingBox::topRight ( )

The top right corner of this GeoBoundingBox as a vec2d.

void AltusUnified::GeoBoundingBox::topRight_set ( vec2d  val)