AnyCAD Rapid API 2023
Help you to create a better world!
载入中...
搜索中...
未找到
BoundedVolume类 参考

Public 成员函数

void setPlanes (PlaneList value)
 
PlaneList getPlanes ()
 
void setOutside (EnumPlaneSide value)
 
EnumPlaneSide getOutside ()
 
 BoundedVolume (EnumPlaneSide theOutside)
 
boolean intersects (AABox box)
 
boolean intersects (Sphere sphere)
 
RayIntersect intersects (Ray ray)
 

详细描述

<> Represents a convex volume bounded by planes.

构造及析构函数说明

◆ BoundedVolume()

BoundedVolume.BoundedVolume ( EnumPlaneSide  theOutside)

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

成员函数说明

◆ intersects() [1/3]

boolean BoundedVolume.intersects ( AABox  box)

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

◆ intersects() [2/3]

RayIntersect BoundedVolume.intersects ( Ray  ray)

Intersection test with a Ray

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

◆ intersects() [3/3]

boolean BoundedVolume.intersects ( Sphere  sphere)

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