Click or drag to resize

AABB Structure

返回用户文档首页
表示一个轴对齐的包围盒(Axis-Aligned Bounding Box)
Inheritance Hierarchy
SystemObject
  SystemValueType
    LoongCAD.GeometryAABB

Namespace: LoongCAD.Geometry
Assembly: LoongSDKCore (in LoongSDKCore.dll) Version: 0.8.15.0 (0.8.15.0)
Syntax
C#
[SerializableAttribute]
public struct AABB

The AABB type exposes the following members.

Constructors
 NameDescription
Public methodAABB(AABB) 从另一个AABB实例拷贝构造。
Public methodAABB(Vec3, Vec3) 初始化一个新的包围盒实例。
Top
Properties
 NameDescription
Public propertyMax 获取或设置包围盒的最大顶点。
Public propertyMin 获取或设置包围盒的最小顶点。
Public propertyPoints 获取表示AABB的顶点数组。
Top
Methods
 NameDescription
Public methodAdd 将一个点添加到包围盒中,并根据需要扩展包围盒的边界。
Public methodContains 检查给定的点是否在包围盒内。
Public methodEquals 比较当前包围盒与另一个对象是否相等。
(Overrides ValueTypeEquals(Object))
Public methodGetHashCode 获取当前AABB的哈希代码。
(Overrides ValueTypeGetHashCode)
Public methodInflate 对包围盒的每个边界进行膨胀。
Public methodIntersectRay 检查一条射线是否与轴对齐包围盒(AABB)相交。
Public methodIsValid 检查当前包围盒是否有效。
Public methodToString 返回表示当前AABB的字符串。
(Overrides ValueTypeToString)
Public methodTransform 对AABB应用变换矩阵。
Top
See Also