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
  • Releases the resources allocated by graphene_quaternion_alloc().

    Returns 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 an angle on a specific axis.

    Parameters

    • angle: number

      the rotation on a given axis, in degrees

    • axis: Graphene.Vec3

      the axis of rotation, expressed as a vector

    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

    • degX: number

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

    • degY: number

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

    • degZ: 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

    • radX: number

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

    • radY: number

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

    • radZ: number

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

    Returns Graphene.Quaternion

  • toAngles(): [number, number, number]
  • toRadians(): [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