WanaPlan

API Docs for: 2.7.0
Show:

ObjectHelper.AABB

Module: Helpers
Parent Module: Wanaplan

Summary

Axis Aligned Bounding Box.

In order to keep things simple and limit space complexity, this class holds minimal mandatory properties.

Constructor

ObjectHelper.AABB

Syntax

ObjectHelper.AABB

(
  • max
  • min
)

Summary

Parameters:

  • max BABYLON.Vector3

    the point of the box which is the greatest ( in world reference )

  • min BABYLON.Vector3

    the point of the box which is the smallest ( in world reference )

Item Index

Methods

copyFromOBB

Syntax

copyFromOBB

(
  • OBB
)

Summary

Sets the AABB in order to define the minimal volume that encloses the OBB given in argument. /!\ The resulting AABB may not fit exactly the OBB volume due to rotation limitations.

Parameters:

  • OBB OBB

    the Oriented Bounding Box

Returns:

this

copyFromOyBB

Syntax

copyFromOyBB

(
  • OyBB
)

Summary

Sets the AABB in order to define the minimal volume that encloses the OyBB given in argument. /!\ The resulting AABB may not fit exactly the OyBB volume due to rotation limitations.

Parameters:

  • OyBB OyBB

    the Bounding Box Oriented along y axis

Returns:

this