Back to class index
OBB[Class Summary]
pos
r
axis
ctor (+2 overloads)
SetNegativeInfinity()
SetFrom(aabb) (+5 overloads)
ToPolyhedron()[const]
ToPBVolume()[const]
MinimalEnclosingAABB()[const]
MinimalEnclosingSphere()[const]
MaximalContainedSphere()[const]
Size()[const]
HalfSize()[const]
Diagonal()[const]
HalfDiagonal()[const]
WorldToLocal()[const]
LocalToWorld()[const]
IsFinite()[const]
IsDegenerate()[const]
CenterPoint()[const]
Centroid()[const]
AnyPointFast()[const]
Volume()[const]
SurfaceArea()[const]
PointInside(x,y,z)[const]
Edge(edgeIndex)[const]
CornerPoint(cornerIndex)[const]
ExtremePoint(direction)[const] (+1 overload)
ProjectToAxis(...)[const]
UniqueFaceNormals(out)[const]
UniqueEdgeDirections(out)[const]
PointOnEdge(edgeIndex,u)[const]
FaceCenterPoint(faceIndex)[const]
FacePoint(faceIndex,u,v)[const]
FacePlane(faceIndex)[const]
GetCornerPoints(outPointArray)[const]
GetFacePlanes(outPlaneArray)[const]
RandomPointInside(rng)[const]
RandomPointOnSurface(rng)[const]
RandomPointOnEdge(rng)[const]
RandomCornerPoint(rng)[const]
Translate(offset)
Scale(...) (+1 overload)
Transform(transform) (+3 overloads)
ClosestPoint(point)[const]
Distance(point)[const] (+1 overload)
Contains(point)[const] (+7 overloads)
Intersects(obb,epsilon)[const] (+14 overloads)
Enclose(point)
Triangulate(...)[const]
ToEdgeList(outPos)[const]
ToString()[const]
SerializeToString()[const]
SerializeToCodeString()[const]
Equals(rhs,epsilon)[const]
BitEquals(other)[const]
NumFaces()[static]
NumEdges()[static]
NumVertices()[static]
ExtremePointsAlongDirection(...)[static]
OptimalEnclosingOBB(...)[static]
NumVerticesInTriangulation(...)[static]
NumVerticesInEdgeList()[static]
FromString(str,outEndStr)[static] (+1 overload)

OBB::Contains

Syntax

bool OBB::Contains(const float4 &point) const; [26 lines of code]
bool OBB::Contains(const LineSegment &lineSegment) const; [4 lines of code]
bool OBB::Contains(const AABB &aabb) const; [10 lines of code]
bool OBB::Contains(const OBB &obb) const; [8 lines of code]
bool OBB::Contains(const Triangle &triangle) const; [4 lines of code]
bool OBB::Contains(const Polygon &polygon) const; [7 lines of code]
bool OBB::Contains(const Frustum &frustum) const; [8 lines of code]
bool OBB::Contains(const Polyhedron &polyhedron) const; [9 lines of code]

Tests if the given object is fully contained inside this OBB.

This function returns true if the given object lies inside this OBB, and false otherwise.

Note
The comparison is performed using less-or-equal, so the faces of this OBB count as being inside, but due to float inaccuracies, this cannot generally be relied upon.

See Also

Distance(), Intersects(), ClosestPoint().

Work in progress:

Todo: in bool OBB::Contains(const float4 &point) const:
Add Contains(Circle/Disc/Sphere/Capsule).