BoundingBox

Metode

BoundingBox mendefinisikan axis-aligned bounding box menggunakan Minimum dan Maximum FVector3 sudut. Digunakan untuk kueri spasial dan pembantu frustum culling.

Metode

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

Lihat Juga

 Bahasa Indonesia