Gjsify LogoGjsify Logo

A quaternion.

The contents of the #graphene_quaternion_t structure are private and should never be accessed directly.

record

Hierarchy

  • Quaternion

Index

Constructors

Properties

name: string

Methods

  • free(): void
  • Initializes a #graphene_quaternion_t using the given four values.

    Parameters

    • x: number

      the first component of the quaternion

    • y: number

      the second component of the quaternion

    • z: number

      the third component of the quaternion

    • w: number

      the fourth component of the quaternion

    Returns Graphene.Quaternion

  • Initializes a #graphene_quaternion_t using the values of the Euler angles on each axis.

    See also: graphene_quaternion_init_from_euler()

    Parameters

    • deg_x: number

      rotation angle on the X axis (yaw), in degrees

    • deg_y: number

      rotation angle on the Y axis (pitch), in degrees

    • deg_z: number

      rotation angle on the Z axis (roll), in degrees

    Returns Graphene.Quaternion

  • Initializes a #graphene_quaternion_t using the values of the Euler angles on each axis.

    See also: graphene_quaternion_init_from_euler()

    Parameters

    • rad_x: number

      rotation angle on the X axis (yaw), in radians

    • rad_y: number

      rotation angle on the Y axis (pitch), in radians

    • rad_z: number

      rotation angle on the Z axis (roll), in radians

    Returns Graphene.Quaternion

  • to_angles(): [number, number, number]
  • to_radians(): [number, number, number]

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