Sphere.initFromVectors

Initializes the given #graphene_sphere_t using the given array of 3D coordinates so that the sphere includes them.

The center of the sphere can either be specified, or will be center of the 3D volume that encompasses all @vectors.

class Sphere
initFromVectors

Parameters

vectors Vec3[]

an array of #graphene_vec3_t

center Point3D

the center of the sphere

Return Value

Type: Sphere

the initialized #graphene_sphere_t

Meta