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.
read-only
- axis1 → Vector3
-
The second axis of the OBB.
read-only
- axis2 → Vector3
-
The third axis of the OBB.
read-only
- center → Vector3
-
The center of the OBB.
read-only
- halfExtents → Vector3
-
The half extends of the OBB.
read-only
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
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
-
resetRotation(
) → void - Reset the rotation of this.
-
rotate(
Matrix3 t) → void -
Rotate this by the rotation matrix
t
. -
transform(
Matrix4 t) → void -
Transform this by the transform
t
. -
translate(
Vector3 offset) → void -
Translate this by
offset
. -
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
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited