AnyCAD Rapid API 2023
Help you to create a better world!
PlaneBoundedVolume Class Reference

Public Member Functions

void setPlanes (PlaneList value)
 
PlaneList getPlanes ()
 
void setOutside (Plane.Side value)
 
Plane.Side getOutside ()
 
 PlaneBoundedVolume (Plane.Side theOutside)
 
boolean intersects (AxisAlignedBox box)
 
boolean intersects (Sphere sphere)
 
RayIntersect intersects (Ray ray)
 

Detailed Description

<> Represents a convex volume bounded by planes.

Constructor & Destructor Documentation

◆ PlaneBoundedVolume()

PlaneBoundedVolume.PlaneBoundedVolume ( Plane.Side  theOutside)

Constructor, determines which side is deemed to be 'outside'

Member Function Documentation

◆ intersects() [1/3]

boolean PlaneBoundedVolume.intersects ( AxisAlignedBox  box)

Intersection test with AABB
Remarks: May return false positives but will never miss an intersection.

◆ intersects() [2/3]

RayIntersect PlaneBoundedVolume.intersects ( Ray  ray)

Intersection test with a Ray

Returns
std::pair of hit (bool) and distance
Remarks: May return false positives but will never miss an intersection.

◆ intersects() [3/3]

boolean PlaneBoundedVolume.intersects ( Sphere  sphere)

Intersection test with Sphere
Remarks: May return false positives but will never miss an intersection.