Obb3 class
Defines a 3-dimensional oriented bounding box defined with a center, halfExtents and axes.
Constructors
Properties
- axis0 → Vector3
-
The first axis of the OBB.
no setter
- axis1 → Vector3
-
The second axis of the OBB.
no setter
- axis2 → Vector3
-
The third axis of the OBB.
no setter
- center → Vector3
-
The center of the OBB.
no setter
- halfExtents → Vector3
-
The half extends of the OBB.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
closestPointTo(
Vector3 p, Vector3 q) → void -
Find the closest point
q
on the OBB to the pointp
and store it inq
. -
copyCorner(
int cornerIndex, Vector3 corner) → void -
Store the corner with
cornerIndex
incorner
. -
copyFrom(
Obb3 other) → void -
Copy from
other
into this. -
copyInto(
Obb3 other) → void -
Copy from this into
other
. -
intersectsWithObb3(
Obb3 other, [double epsilon = 1e-3]) → bool -
Check for intersection between this and
other
. -
intersectsWithQuad(
Quad other, {IntersectionResult? result}) → bool -
Return if this intersects with
other
-
intersectsWithTriangle(
Triangle other, {IntersectionResult? result}) → bool -
Return if this intersects with
other
-
intersectsWithVector3(
Vector3 other) → bool -
Return if this intersects with
other
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetRotation(
) → void - Reset the rotation of this.
-
rotate(
Matrix3 t) → void -
Rotate this by the rotation matrix
t
. -
toString(
) → String -
A string representation of this object.
inherited
-
transform(
Matrix4 t) → void -
Transform this by the transform
t
. -
translate(
Vector3 offset) → void -
Translate this by
offset
.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited