init_from_vectors


Description:

public unowned Sphere? init_from_vectors (Vec3[] vectors, 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 vectors.

Parameters:

this

the Sphere to initialize

vectors

an array of Vec3

center

the center of the sphere

n_vectors

the number of Vec3 in the vectors array

Returns:

the initialized Sphere




2022 vala-language.org