init_from_points


Description:

public unowned Sphere? init_from_points (Point3D[] points, Point3D? center)

Initializes the given Sphere 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:

this

the Sphere to initialize

points

an array of Point3D

center

the center of the sphere

n_points

the number of Point3D in the points array

Returns:

the initialized Sphere