setFromPoints method

BoundingBox setFromPoints(
  1. List<Vector3> points
)

Sets the upper and lower bounds of this box so it encloses the position data in the given array.

points - An array holding 3D position data as instances of {@link Vector3}. return A reference to this bounding box.

Implementation

BoundingBox setFromPoints(List<Vector3> points ) {
	empty();

	for (int i = 0, il = points.length; i < il; i ++ ) {
		this.expandByPoint( points[ i ] );
	}

	return this;
}