Gjsify LogoGjsify Logo

A sphere, represented by its center and radius.

record

Hierarchy

  • Sphere

Index

Constructors

Properties

name: string

Methods

  • containsPoint(point: Point3D): boolean
  • Checks whether the given point is contained in the volume of a #graphene_sphere_t.

    Parameters

    • point: Point3D

      a #graphene_point3d_t

    Returns boolean

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

    Parameters

    • point: Point3D

      a #graphene_point3d_t

    Returns number

  • free(): void
  • getRadius(): number
  • Initializes the given #graphene_sphere_t with the given center and radius.

    Parameters

    • center: Point3D

      the coordinates of the center of the sphere, or %NULL for a center in (0, 0, 0)

    • radius: number

      the radius of the sphere

    Returns Sphere

  • 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.

    Parameters

    • points: Point3D[]

      an array of #graphene_point3d_t

    • center: Point3D

      the center of the sphere

    Returns Sphere

  • 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.

    Parameters

    • vectors: Graphene.Vec3[]

      an array of #graphene_vec3_t

    • center: Point3D

      the center of the sphere

    Returns Sphere

  • isEmpty(): boolean
  • Translates the center of the given #graphene_sphere_t using the point coordinates as the delta of the translation.

    Parameters

    • point: Point3D

      the coordinates of the translation

    Returns Sphere

  • Allocates a new #graphene_sphere_t.

    The contents of the newly allocated structure are undefined.

    Returns Sphere

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method