Gjsify LogoGjsify Logo

A sphere, represented by its center and radius.

record

Hierarchy

  • Sphere

Index

Constructors

Properties

name: string

Methods

  • contains_point(point: Point3D): boolean
  • free(): void
  • get_radius(): 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

  • is_empty(): 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

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