BoundingBox class

///////////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////////

Constructors

BoundingBox.new({required RaliPosition southwest, required RaliPosition northeast})
//////////// ////////////
const
BoundingBox.fromPositions(List<RaliPosition> positions)
Creates a BoundingBox that contains all provided positions
factory

Properties

center → RaliPosition
///////// ///////// Calculates the center point of the bounding box
no setter
hashCode → int
The hash code for this object.
no setterinherited
height → double
Calculates height of bounding box in degrees
no setter
northeast → RaliPosition
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
southwest → RaliPosition
//////////// ////////////
final
width → double
Calculates width of bounding box in degrees
no setter

Methods

contains(RaliPosition position) → bool
Checks if a position is contained within this bounding box
expandByMeters(double meters) → BoundingBox
Expands the bounding box by a specified buffer distance in meters
getPadding(double screenWidth, double screenHeight) → Map<String, double>
Calculates padding for displaying the bounding box on screen
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMapboxBounds() → CoordinateBounds
//////////// //////////// Converts to a Mapbox CoordinateBounds
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Constants

epsilon → const double