Obb3 class Null safety

Defines a 3-dimensional oriented bounding box defined with a center, halfExtents and axes.

Constructors

Obb3()
Create a new OBB with erverything set to zero.
Obb3.centerExtentsAxes(Vector3 center, Vector3 halfExtents, Vector3 axis0, Vector3 axis1, Vector3 axis2)
Create a new OBB using center, halfExtents and axis.
Obb3.copy(Obb3 other)
Create a new OBB as a copy of other.

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-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

closestPointTo(Vector3 p, Vector3 q) → void
Find the closest point q on the OBB to the point p and store it in q.
copyCorner(int cornerIndex, Vector3 corner) → void
Store the corner with cornerIndex in corner.
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 non-existent 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