Sphere.centerRadius constructor

Sphere.centerRadius(
  1. Vector3 center,
  2. double radius
)

Create a sphere from a center and a radius.

Implementation

Sphere.centerRadius(Vector3 center, double radius)
    : _center = new Vector3.copy(center),
      _radius = radius;