Since 1.2Optionalproperties: Partial<{}>Checks whether the given point is contained in the volume
of a Graphene.Sphere.
true if the sphere contains the point
Computes the distance of the given point from the surface of
a Graphene.Sphere.
the distance of the point
Checks whether two Graphene.Sphere are equal.
true if the spheres are equal
Frees the resources allocated by graphene_sphere_alloc().
Computes the bounding box capable of containing the given Graphene.Sphere.
Retrieves the coordinates of the center of a Graphene.Sphere.
Retrieves the radius of a Graphene.Sphere.
Initializes the given Graphene.Sphere with the given center and radius.
the coordinates of the center of the sphere, or null for a center in (0, 0, 0)
the radius of the sphere
the initialized Graphene.Sphere
Initializes the given Graphene.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.
an array of Graphene.Point3D
Optionalcenter: Point3Dthe center of the sphere
the initialized Graphene.Sphere
Initializes the given Graphene.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.
an array of Graphene.Vec3
Optionalcenter: Point3Dthe center of the sphere
the initialized Graphene.Sphere
Checks whether the sphere has a zero radius.
true if the sphere is empty
Translates the center of the given Graphene.Sphere using the point
coordinates as the delta of the translation.
the coordinates of the translation
Staticalloc
A sphere, represented by its center and radius.
Since
1.2