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

Public 成员函数

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

详细描述

<> Represents a convex volume bounded by planes.

构造及析构函数说明

◆ BoundedVolumeD()

BoundedVolumeD.BoundedVolumeD ( EnumPlaneSide theOutside)

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

成员函数说明

◆ intersects() [1/3]

boolean BoundedVolumeD.intersects ( AABox box)

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

◆ intersects() [2/3]

RayIntersect BoundedVolumeD.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 BoundedVolumeD.intersects ( Sphere sphere)

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