Sphere

class Sphere(val grapheneSpherePointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

A sphere, represented by its center and radius.

Skipped during bindings generation

  • parameter points: Array parameter of type Point3D is not supported

  • parameter vectors: Array parameter of type Vec3 is not supported

Since

1.2

Constructors

Link copied to clipboard
constructor()

Allocate a new Sphere.

constructor(scope: <Error class: unknown class>)

Allocate a new Sphere using the provided AutofreeScope.

constructor(grapheneSpherePointer: <Error class: unknown class><<Error class: unknown class>>, cleaner: <Error class: unknown class>? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val grapheneSpherePointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Checks whether the given @point is contained in the volume of a #graphene_sphere_t.

Link copied to clipboard
fun distance(point: Point3d): <Error class: unknown class>

Computes the distance of the given @point from the surface of a #graphene_sphere_t.

Link copied to clipboard

Checks whether two #graphene_sphere_t are equal.

Link copied to clipboard
fun free()

Frees the resources allocated by graphene_sphere_alloc().

Link copied to clipboard

Computes the bounding box capable of containing the given #graphene_sphere_t.

Link copied to clipboard
fun getCenter(center: Point3d)

Retrieves the coordinates of the center of a #graphene_sphere_t.

Link copied to clipboard
fun getRadius(): <Error class: unknown class>

Retrieves the radius of a #graphene_sphere_t.

Link copied to clipboard
fun init(center: Point3d? = null, radius: <Error class: unknown class>): Sphere

Initializes the given #graphene_sphere_t with the given @center and @radius.

Link copied to clipboard

Checks whether the sphere has a zero radius.

Link copied to clipboard
fun translate(point: Point3d, res: Sphere)

Translates the center of the given #graphene_sphere_t using the @point coordinates as the delta of the translation.