fromAABB method

OBB fromAABB(
  1. AABB aabb
)

Computes the OBB from an AABB.

Implementation

OBB fromAABB(AABB aabb ) {
	aabb.getCenter( center );
	aabb.getSize( halfSizes ).multiplyScalar( 0.5 );
	rotation.identity();

	return this;
}