Back to class index
AABB[Class Summary]
minPoint
maxPoint
ctor (+3 overloads)
MinX()[const]
MinY()[const]
MinZ()[const]
MaxX()[const]
MaxY()[const]
MaxZ()[const]
SetNegativeInfinity()
SetFromCenterAndSize(center,size)
SetFrom(obb) (+2 overloads)
ToPolyhedron()[const]
ToPBVolume()[const]
ToOBB()[const]
MinimalEnclosingSphere()[const]
MaximalContainedSphere()[const]
IsFinite()[const]
IsDegenerate()[const]
CenterPoint()[const]
Centroid()[const]
AnyPointFast()[const]
PointInside(x,y,z)[const]
Edge(edgeIndex)[const]
CornerPoint(cornerIndex)[const]
ExtremePoint(direction)[const] (+1 overload)
PointOnEdge(edgeIndex,u)[const]
FaceCenterPoint(faceIndex)[const]
FacePoint(faceIndex,u,v)[const]
FaceNormal(faceIndex)[const]
FacePlane(faceIndex)[const]
GetCornerPoints(outPointArray)[const]
GetFacePlanes(outPlaneArray)[const]
Size()[const]
HalfSize()[const]
Diagonal()[const]
HalfDiagonal()[const]
Volume()[const]
SurfaceArea()[const]
RandomPointInside(rng)[const]
RandomPointOnSurface(rng)[const]
RandomPointOnEdge(rng)[const]
RandomCornerPoint(rng)[const]
Translate(offset)
Scale(...) (+1 overload)
TransformAsAABB(transform) (+3 overloads)
Transform(transform)[const] (+3 overloads)
ClosestPoint(targetPoint)[const]
Distance(point)[const] (+1 overload)
Contains(point)[const] (+10 overloads)
Intersects(ray,dNear,dFar)[const] (+14 overloads)
ProjectToAxis(axis,dMin,dMax)[const]
UniqueFaceNormals(out)[const]
UniqueEdgeDirections(out)[const]
Enclose(point) (+11 overloads)
Triangulate(...)[const]
ToEdgeList(outPos)[const]
ToString()[const]
SerializeToString()[const]
SerializeToCodeString()[const]
Intersection(aabb)[const]
IntersectLineAABB(...)[const]
IntersectLineAABB_CPP(...)[const]
Equals(rhs,epsilon)[const]
BitEquals(other)[const]
NumFaces()[static]
NumEdges()[static]
NumVertices()[static]
MinimalEnclosingAABB(...)[static]
ExtremePointsAlongAABB(...)[static]
FromCenterAndSize(...)[static]
NumVerticesInTriangulation(...)[static]
NumVerticesInEdgeList()[static]
FromString(str,outEndStr)[static] (+1 overload)

AABB::SetFrom

Syntax

void AABB::SetFrom(const OBB &obb); [5 lines of code]

Sets this AABB to enclose the given OBB.

This function computes the minimal axis-aligned bounding box for the given oriented bounding box. If the orientation of the OBB is not aligned with the world axes, this conversion is not exact and loosens the volume of the bounding box.

Parameters

const OBB &obbThe oriented bounding box to convert into this AABB.

See Also

SetCenter(), class OBB.

Work in progress:

Todo: in void AABB::SetFrom(const OBB &obb):
Implement SetFrom(Polyhedron).

Syntax

void AABB::SetFrom(const Sphere &s); [6 lines of code]

Sets this AABB to enclose the given sphere.

This function computes the smallest possible AABB (in terms of volume) that contains the given sphere, and stores the result in this structure.

Syntax

void AABB::SetFrom(const float4 *pointArray, int numPoints); [9 lines of code]

Sets this AABB to enclose the given set of points.

Parameters

const float4 *pointArrayA pointer to an array of points to enclose inside an AABB. intnumPointsThe number of elements in the pointArray list.

See Also

MinimalEnclosingAABB().