AABB class

An axis-aligned bounding box.

Constructors

AABB([double minX = 0, double maxX = 0, double minY = 0, double maxY = 0, double minZ = 0, double maxZ = 0])
An axis-aligned bounding box.

Properties

elements List<double>
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clone() AABB
combine(AABB aabb1, AABB aabb2) AABB
Set this AABB to the combined AABB of aabb1 and aabb2.
copy(AABB aabb, [double m = 0]) AABB
Copy all info in this AABB to another AABB
expandByPoint(Vec3 pt) → void
Make this AABB larger by this point
expandByScalar(double s) → void
Make this AABB larger by this value
fromArray(List<double> array) AABB
Create this AABB from an array
intersectsWithPoint(double x, double y, double z) bool
Get whether the AABB intersects with the point or not.
intersectTest(AABB aabb) bool
Chack to see if aabb intersects this.AABB
intersectTestTwo(AABB aabb) bool
makeEmpty() → void
Clear all info from this AABB
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(double minX, double maxX, double minY, double maxY, double minZ, double maxZ) AABB
Set the AABB with new parameters
setFromPoints(List<Vec3> arr) → void
Set the AABB from an array of vertices. From THREE.
surfaceArea() double
Get the surface area.
toString() String
A string representation of this object.
inherited

Operators

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