A 3-dimensional bounding box.

Constructors

BoundingBox(Point3 minCorner, Point3 maxCorner)

Creates a bounding box with the given corners. The constructor assumes minCorner to be smaller than maxCorner.

BoundingBox.empty()

Creates a new empty bounding box.

Properties

hashCode → int

Get a hash code for this object.

read-only, inherited
maxCorner → Point3

Corner points of this bounding box.

read / write
minCorner → Point3

Corner points of this bounding box.

read / write
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

extend(Point3 point) → void

Extends this bounding box with the given point.

extendBB(BoundingBox bbox) → void

Extends this bounding box with the given bounding box.

intersect(Ray r) → Vector2

Intersects this box with the given ray and returns a vec2 containing the distances to the intersections.

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.

inherited