vrbox

A box.

Public Attributes


Centre of the box.


Centre of the box.


DEPRECATED since version 2.0.0. Please use vrbox.dimensions instead.


Dimensions of the box.


DEPRECATED since version 2.0.0. Please use vrbox:getExtent() instead.


Maximum in each axis of the box.


Minimum in each axis of the box.

Public Member Functions


boolean contains(Any b)

(vrTestContain) Returns whether or object A completly contains object B.

Parameters
b

A sphere, AABB, or vec3

Returns

true if b is inside a


Any copy()

(vrCopy) Returns a copy of a Vector, Matrix, Ray, Sphere, AABBox, Quaternion or Plane


number getExtent()

(vrAABoxExtent) Returns the largest dimension of an axis aligned bounding box.


boolean intersects(Any b)

(vrTestIntersection) Returns whether or not two objects are intersecting one another.

Parameters
b

A sphere or AABB

Returns

True if the objects are intersecting


(vrAABoxMerge) Returns an axis aligned bounding box that contains two other bounding boxes.


Any operator=()

(vrAABoxTransform) Returns an axis aligned bounding box transformed by a matrix.

No Results.

Getting StartedArchitectureBest PracticesHow ToAdvanced TopicsChangelogvrtreevrtree_cppvtCoreCoreForeign Function InterfaceMetanodesMigrationsObserversPropertiesSettingsTreeUtilitiesAPI DefinitionsVR ExchangePluginsLua API