Aabb3 class
- Available extensions
Constructors
- Aabb3()
- Create a new AABB with min and max set to the origin.
- Aabb3.centerAndHalfExtents(Vector3 center, Vector3 halfExtents)
-
Create a new AABB with a
centerandhalfExtents.factory - Aabb3.copy(Aabb3 other)
-
Create a new AABB as a copy of
other. - Aabb3.fromBuffer(ByteBuffer buffer, int offset)
-
Constructs Aabb3 with a min/max storage that views given
bufferstarting atoffset.offsethas to be multiple of Float32List.bytesPerElement. - Aabb3.fromObb3(Obb3 obb)
-
Create a new AABB that encloses a
obb.factory - Aabb3.fromQuad(Quad quad)
-
Create a new AABB that encloses a
quad.factory - Aabb3.fromRay(Ray ray, double limitMin, double limitMax)
-
Create a new AABB that encloses a limited
ray(or line segment) that has a minLimit and maxLimit.factory - Aabb3.fromSphere(Sphere sphere)
-
Create a new AABB that encloses a
sphere.factory - Aabb3.fromTriangle(Triangle triangle)
-
Create a new AABB that encloses a
triangle.factory - Aabb3.minMax(Vector3 min, Vector3 max)
-
Create a new AABB with a
minandmax.
Properties
Methods
-
containsAabb3(
Aabb3 other) → bool -
Return if this contains
other. -
containsSphere(
Sphere other) → bool -
Return if this contains
other. -
containsTriangle(
Triangle other) → bool -
Return if this contains
other. -
containsVector3(
Vector3 other) → bool -
Return if this contains
other. -
copyCenter(
Vector3 center) → void -
Copy the
centerof this. -
copyCenterAndHalfExtents(
Vector3 center, Vector3 halfExtents) → void -
Copy the
centerand thehalfExtentsof this. -
copyFrom(
Aabb3 other) → void -
Copy the min and max from
otherinto this. -
getPN(
Vector3 planeNormal, Vector3 outP, Vector3 outN) → void -
hull(
Aabb3 other) → void -
Set the min and max of this so that this is a hull of this and
other. -
hullPoint(
Vector3 point) → void -
Set the min and max of this so that this contains
point. -
intersectsWithAabb3(
Aabb3 other) → bool -
Return if this intersects with
other. -
intersectsWithPlane(
Plane other, {IntersectionResult? result}) → bool -
Return if this intersects with
other -
intersectsWithQuad(
Quad other, {IntersectionResult? result}) → bool -
Return
trueif this intersects withother. -
intersectsWithSphere(
Sphere other) → bool -
Return if this intersects with
other. -
intersectsWithTriangle(
Triangle other, {double epsilon = 1e-3, IntersectionResult? result}) → bool -
Return if this intersects with
other.epsilonallows the caller to specify a custum eplsilon value that should be used for the test. Ifresultis specified and an intersection is found, result is modified to contain more details about the type of intersection. -
intersectsWithVector3(
Vector3 other) → bool -
Return if this intersects with
other. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
rotate(
Matrix4 t) → void -
Rotate this by the rotation matrix
t. -
rotated(
Matrix4 t, Aabb3 out) → Aabb3 -
Create a copy of this that is rotated by the rotation matrix
tand store it inout. -
setCenterAndHalfExtents(
Vector3 center, Vector3 halfExtents) → void -
Set the AABB by a
centerandhalfExtents. -
setFrom(
Aabb3 other) → void -
Available on Aabb3, provided by the Aabb3Extension extension
Set the min and max from theother. -
setObb3(
Obb3 obb) → void -
Set the AABB to enclose a
obb. -
setQuad(
Quad quad) → void -
Set the AABB to enclose a
quad. -
setRay(
Ray ray, double limitMin, double limitMax) → void -
Set the AABB to enclose a limited
ray(or line segment) that is limited bylimitMinandlimitMax. -
setSphere(
Sphere sphere) → void -
Set the AABB to enclose a
sphere. -
setTriangle(
Triangle triangle) → void -
Set the AABB to enclose a
triangle. -
setZero(
) → void -
Available on Aabb3, provided by the Aabb3Extension extension
Set the min and max to zero. -
toString(
) → String -
A string representation of this object.
inherited
-
transform(
Matrix4 t) → void -
Transform this by the transform
t. -
transformed(
Matrix4 t, Aabb3 out) → Aabb3 -
Create a copy of this that is transformed by the transform
tand store it inout.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited