AABB class

An axis-aligned bounding box.

Constructors

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

Properties

elements ↔ List<double>
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
max ↔ Vector3
getter/setter pair
maxX ↔ double
getter/setter pair
maxY ↔ double
getter/setter pair
maxZ ↔ double
getter/setter pair
min ↔ Vector3
getter/setter pair
minX ↔ double
getter/setter pair
minY ↔ double
getter/setter pair
minZ ↔ double
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

clampPoint(Vector3 point, Vector3 target) → Vector3
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(Vector3 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
getCenter(Vector3 target) → Vector3
intersectsSphere(Sphere sphere) → bool
intersectsTriangle(Triangle triangle) → bool
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
isEmpty() → bool
makeEmpty() → void
Clear all info from this AABB
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
satForAxes(List<double> axes, Vector3 v0, Vector3 v1, Vector3 v2, Vector3 extents) → bool
set(double minX, double maxX, double minY, double maxY, double minZ, double maxZ) → AABB
Set the AABB with new parameters
setFromPoints(List<Vector3> 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.
override

Operators

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