init

fun init(center: Point3D? = null, radius: Float): Sphere

Initializes the given #graphene_sphere_t with the given @center and @radius.

Return

the initialized #graphene_sphere_t

Since

1.2

Parameters

center

the coordinates of the center of the sphere, or null for a center in (0, 0, 0)

radius

the radius of the sphere