Obb3 class

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


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.


axis0 Vector3
The first axis of the OBB.
axis1 Vector3
The second axis of the OBB.
axis2 Vector3
The third axis of the OBB.
center Vector3
The center of the OBB.
halfExtents Vector3
The half extends of the OBB.
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


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
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. [...]
toString() String
Returns a string representation of this object.


operator ==(dynamic other) bool
The equality operator. [...]