set method

BoundingSphere set(
  1. Vector3 center,
  2. double radius
)

center - center of the sphere.

radius - radius of the sphere.

Sets the center and radius properties of this sphere.

Please note that this method only copies the values from the given center.

Implementation

BoundingSphere set(Vector3 center, double radius) {
  this.center.setFrom(center);
  radius = radius;

  return this;
}