BoundsBase<T extends Point<num>> class

An immutable bounds with min and max points for limits.

Inheritance
Implementers
Annotations
  • @immutable

Constructors

BoundsBase({required T min, required T max})
Create bounds with required (and non-empty) min and max points.
const

Properties

bounds Bounds<T>
The bounds for this object (could be calculated if not explicitely set).
no setter
boundsExplicit Bounds<T>?
The explicit bounds for this object when available.
no setter
coordinateDimension int
The number of coordinate values (2, 3 or 4).
no setterinherited
corners2D Iterable<T>
Returns all distinct (in 2D) corners for this axis aligned bounding box.
no setterinherited
hashCode int
The hash code for this object.
no setteroverride
is3D bool
True for 3D positions (with z or elevation coordinate).
no setterinherited
isGeographic bool
True for geographic coordinates (with longitude and latitude).
no setterinherited
isMeasured bool
True if a measure value is available (or the m coordinate for a position).
no setterinherited
max → T
The maximum position (or east-north) of this bounding box.
no setteroverride
maxM num?
The maximum m coordinate optionally. Returns null if not available.
no setterinherited
maxX num
The maximum x (or east) coordinate.
no setterinherited
maxY num
The maximum y (or north) coordinate.
no setterinherited
maxZ num?
The maximum z coordinate optionally. Returns null if not available.
no setterinherited
min → T
The minimum position (or west-south) of this bounding box.
no setteroverride
minM num?
The minimum m coordinate optionally. Returns null if not available.
no setterinherited
minX num
The minimum x (or west) coordinate.
no setterinherited
minY num
The minimum y (or south) coordinate.
no setterinherited
minZ num?
The minimum z coordinate optionally. Returns null if not available.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
spatialDimension int
The number of spatial coordinate values (2 for 2D or 3 for 3D).
no setterinherited
type Coords
The coordinate type.
no setterinherited

Methods

copyTo<R extends Box>(CreateBox<R> factory) → R
Copies this box to a new box created by the factory.
override
equals2D(Box other, {num? toleranceHoriz}) bool
True if this box equals with other by testing 2D coordinates only.
override
equals3D(Box other, {num? toleranceHoriz, num? toleranceVert}) bool
True if this box equals with other by testing 3D coordinates only.
override
intersects(Box other) bool
Returns true if this bounding box intesects with other box.
inherited
intersects2D(Box other) bool
Returns true if this bounding box intersects with other box in 2D.
inherited
intersectsPoint(Position point) bool
Returns true if this bounding box intesects with point.
inherited
intersectsPoint2D(Position point) bool
Returns true if this bounding box intesects with point in 2D.
inherited
newFrom(Iterable<num> coords, {int? offset, int? length}) Bounds<T>
Creates a new Geometry instance of a type compatible with this object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
project<R extends Point<num>>(Projection projection, {required CreatePosition<R> to}) Bounds<R>
Returns a new object with all points projected using projection.
override
toString() String
A string representation of this object.
override
transform(TransformPosition transform) Bounds<T>
Returns new bounds transformed from this bounds using transform.
override
valuesAsString({String delimiter = ',', int? decimals}) String
Returns coordinate values as a string separated by delimiter.
inherited
writeTo(CoordinateContent output) → void
Writes this bounds object to output.
inherited
writeValues(StringSink buffer, {String delimiter = ',', int? decimals}) → void
Writes coordinate values to buffer separated by delimiter.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override