Skip to main content

AABB

Complete API reference for AABB, including constructors, attributes, virtual attributes, and methods.

Package: JAVARuntime

Category: Vector

Component: no


public class AABB

Constructors

SignatureDescription
AABB(AABB)Executes AABB and returns after the underlying engine call finishes.
AABB()Executes AABB and returns after the underlying engine call finishes.
AABB(float, float, float, float, float, float)Creates a new instance of AABB.
AABB(float, float, float, float, float, float, float, float, float)Creates a new instance of AABB.
AABB(Vector3, Vector3)Creates a new instance of AABB.
AABB(Vector3, Vector3, Vector3)Creates a new instance of AABB.

Attributes

NameTypeDescription
instanceAABBRepresents the instance value stored on this instance. Read or assign to update the property.

Virtual Attributes

NameTypeAccessDescription
lengthMaxfloatgetReturns the length of the maximum of the bounds.
lengthMinfloatgetReturns the length of the minimum of the bounds.
maxVector3get/setReturns the maximum of the bounds.
minVector3get/setReturns the minimum of the bounds.
xfloatget/setReturns the X of the maximum of the bounds.
xnfloatget/setReturns the X of the minimum of the bounds.
yfloatget/setReturns the Y of the maximum of the bounds.
ynfloatget/setReturns the Y of the minimum of the bounds.
zfloatget/setReturns the Z of the maximum of the bounds.
znfloatget/setReturns the Z of the minimum of the bounds.

Methods

SignatureReturnsDescription
lengthMax()floatReturns the length of the maximum of the bounds.
lengthMin()floatReturns the length of the minimum of the bounds.
maxDistanceFromCenter()floatReturns the maximum distance from the center.
isInside(Vector3)booleanReturns true if the point is inside the AABB, otherwise returns false.
getCenter()Vector3Returns the center position of the AABB.
copy()AABBReturns a copy of the current class instance.