setFrom method

BoundingSphere setFrom(
  1. BoundingSphere sphere
)

Copies the values of the passed sphere's center and radius properties to this sphere.

Implementation

BoundingSphere setFrom(BoundingSphere sphere) {
  center.setFrom(sphere.center);
  radius = sphere.radius;

  return this;
}