Checks whether the given point
is contained in the volume
of a #graphene_sphere_t.
a #graphene_point3d_t
Computes the distance of the given point
from the surface of
a #graphene_sphere_t.
a #graphene_point3d_t
Checks whether two #graphene_sphere_t are equal.
a #graphene_sphere_t
Frees the resources allocated by graphene_sphere_alloc().
Retrieves the coordinates of the center of a #graphene_sphere_t.
Retrieves the radius of a #graphene_sphere_t.
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
.
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
.
Checks whether the sphere has a zero radius.
Allocates a new #graphene_sphere_t.
The contents of the newly allocated structure are undefined.
A sphere, represented by its center and radius.