Loading...
Searching...
No Matches
com.navigine.idl.java.BoundingBox Class Reference

Axis-aligned bounding box defined by two WGS84 corners. More...

Public Member Functions

 BoundingBox (GlobalPoint bottomLeft, GlobalPoint topRight)
 Default constructor for class BoundingBox.
 
GlobalPoint getBottomLeft ()
 Lower-left corner of the bounding box GlobalPoint.
 
GlobalPoint getTopRight ()
 Upper-right corner of the bounding box GlobalPoint.
 
String toString ()
 

Detailed Description

Axis-aligned bounding box defined by two WGS84 corners.

Java code snippet:

BoundingBox boundingBox = new BoundingBox(bottomLeft, topRight);
System.out.printf("Created bounding box: bottomLeft(%.4f, %.4f), topRight(%.4f, %.4f)%n",
boundingBox.getBottomLeft().getLatitude(), boundingBox.getBottomLeft().getLongitude(),
boundingBox.getTopRight().getLatitude(), boundingBox.getTopRight().getLongitude());

Kotlin code snippet:

val boundingBox = BoundingBox(bottomLeft, topRight)
println("Created bounding box: bottomLeft(${boundingBox.bottomLeft.x}, ${boundingBox.bottomLeft.y}), topRight(${boundingBox.topRight.x}, ${boundingBox.topRight.y})")

Definition at line 23 of file BoundingBox.java.

Constructor & Destructor Documentation

◆ BoundingBox()

com.navigine.idl.java.BoundingBox.BoundingBox ( GlobalPoint bottomLeft,
GlobalPoint topRight )
inline

Default constructor for class BoundingBox.

Definition at line 33 of file BoundingBox.java.

Member Function Documentation

◆ getBottomLeft()

GlobalPoint com.navigine.idl.java.BoundingBox.getBottomLeft ( )
inline

Lower-left corner of the bounding box GlobalPoint.

Returns

Java code snippet:

GlobalPoint leftCorner = boundingBox.getBottomLeft();
System.out.printf("Bottom-left corner: (%.4f, %.4f)%n", leftCorner.getLatitude(), leftCorner.getLongitude());

Kotlin code snippet:

val leftCorner = boundingBox.bottomLeft
println("Bottom-left corner: (${leftCorner.x}, ${leftCorner.y})")

Definition at line 53 of file BoundingBox.java.

◆ getTopRight()

GlobalPoint com.navigine.idl.java.BoundingBox.getTopRight ( )
inline

Upper-right corner of the bounding box GlobalPoint.

Returns

Java code snippet:

GlobalPoint rightCorner = boundingBox.getTopRight();
System.out.printf("Top-right corner: (%.4f, %.4f)%n", rightCorner.getLatitude(), rightCorner.getLongitude());

Kotlin code snippet:

val rightCorner = boundingBox.topRight
println("Top-right corner: (${rightCorner.x}, ${rightCorner.y})")

Definition at line 70 of file BoundingBox.java.

◆ toString()

String com.navigine.idl.java.BoundingBox.toString ( )
inline

Definition at line 75 of file BoundingBox.java.


The documentation for this class was generated from the following file: