Sphere.initFromPoints
graphene.sphere.Sphere initFromPoints(graphene.point3_d.Point3D[] points, graphene.point3_d.Point3D center)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 points.
Parameters
points | an array of #graphene_point3d_t |
center | the center of the sphere |
Returns
the initialized #graphene_sphere_t