BoundingSphere.copy constructor

BoundingSphere.copy(
  1. BoundingSphere sphere
)

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

Implementation

BoundingSphere.copy(BoundingSphere sphere){
  center = Vector3.copy(sphere.center);
  radius = sphere.radius;
}