BoundingBox

Phương pháp

BoundingBox định nghĩa một axis-aligned bounding box bằng cách sử dụng MinimumMaximum FVector3 các góc. Được sử dụng cho các truy vấn không gian và các trợ giúp frustum culling.

Phương pháp

NameTypeAccessDescription
ExtentBoundingBoxExtentReadGets the extent.
MinimumVector3ReadGets the minimum.
MaximumVector3ReadGets the maximum.
SizeVector3ReadGets the size.
CenterVector3ReadGets the center.
NullBoundingBoxReadGets the null.
InfiniteBoundingBoxReadGets the infinite.
SignatureDescription
BoundingBox(minimum: Vector3, maximum: Vector3)Initializes the box with the given minimum and maximum vectors
BoundingBox(minimum: FVector3, maximum: FVector3)
BoundingBox(minX: double, minY: double, minZ: double, maxX: double, maxY: double, maxZ: double)
Scale()Calculates the absolute largest coordinate value of any contained point.
FromGeometry(geometry: Geometry)Construct a bounding box from given geometry
Merge(pt: Vector4)Merge current bounding box with given point
Merge(pt: Vector3)Merge current bounding box with given point
Merge(pt: FVector3)Merge current bounding box with given point
Merge(x: double, y: double, z: double)Merge current bounding box with given point
Merge(bb: BoundingBox)Merge current bounding box with given point
ToString()Gets the string representation of the bounding box.
GetHashCode()Returns the hash code for this instance
Equals(obj: object)Determines if two objects are equal
OverlapsWith(box: BoundingBox)Check if current bounding box overlaps with specified bounding box.
Contains(p: Vector3)Check if the point p is inside the bounding box
Contains(bbox: BoundingBox)Check if the point p is inside the bounding box
Equals(other: BoundingBox)Determines if two objects are equal

Xem thêm

 Tiếng Việt