AABB
The AABB class defines an axis-aligned bounding box. This is useful as a rough and fast approximation like broadphase collision, where object AABBs are first tested for intersection before performing...
View ArticleAABB::Update
This function will update an AABB's center, dimensions, and radius, given its minimum and maximum extents. Syntaxvoid Update()
View ArticleAABB::IntersectsPoint
This function performs an intersection test between an AABB and a point. Syntaxbool IntersectsPoint(const Vec3& p, float radius=0) Parametersp: the point in space to test intersection with.radius:...
View ArticleAABB::IntersectsAABB
This function performs an intersection test between two AABBs. Syntaxbool IntersectsAABB(const AABB& aabb, float overlap=0) Parametersaabb: the AABB to test intersection with.overlap: an additional...
View ArticleAABB::IntersectsPlane
This function performs an intersection test between an AABB and a plane. Syntaxint IntersectsPlane(const Plane& plane) Parametersplane: the plane to test intersection with. ReturnsReturns true if...
View ArticleAABB::IntersectsRay
This function performs an intersection test between an AABB and a line. Syntaxbool IntersectsLine(const Vec3& p0, const Vec3& p1, const float& radius=0.0) Parametersp0: the starting point...
View ArticleAABB::DistanceToPoint
This function returns the shortest distance between the point and the AABB. Syntaxfloat DistanceToPoint(const Vec3& point, float radius=0) Parameterspoint: the point to test the distance to.radius:...
View Article
More Pages to Explore .....