Sphere

constructor()

Create a sphere with a center of (0,0,0) and a radius of 1.


constructor(radius: Float)

Create a sphere with a center of (0,0,0) and a specified radius.

Parameters

radius

the radius of the sphere


constructor(radius: Float, center: Vector3)

Create a sphere with a specified center and radius.

Parameters

radius

the radius of the sphere

center

the center of the sphere