Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ObservableQuaternion

Represents a rotation quaternion in 3D space.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new ObservableQuaternion(cb: () => void, scope: any, x?: number, y?: number, z?: number, w?: number): ObservableQuaternion
  • Creates a new observable quaternion.

    Parameters

    • cb: () => void

      The callback when changed.

        • (): void
        • Returns void

    • scope: any

      The owner of callback.

    • Default value x: number = 0

      The x component.

    • Default value y: number = 0

      The y component.

    • Default value z: number = 0

      The z component.

    • Default value w: number = 1

      The w component.

    Returns ObservableQuaternion

Properties

_w

_w: number

Protected cb

cb: () => void

The callback when changed.

Type declaration

    • (): void
    • Returns void

Protected scope

scope: any

The owner of callback.

x

x: number

X coord

memberof

PIXI.IPoint#

member

{number} x

y

y: number

Y coord

memberof

PIXI.IPoint#

member

{number} y

Accessors

w

  • get w(): number
  • set w(value: number): void

z

  • get z(): number
  • set z(value: number): void

Methods

clone

copyFrom

  • copyFrom(p: IPoint): this

copyTo

  • copyTo(p: IPoint): any

equals

  • equals(p: IPoint): boolean

set

  • set(x: number, y?: undefined | number, z?: undefined | number, w?: undefined | number): this
  • Sets the quaternion to new x, y, z and w components.

    Parameters

    • x: number

      X component to set.

    • Optional y: undefined | number

      Y component to set.

    • Optional z: undefined | number

      Z component to set.

    • Optional w: undefined | number

      W component to set.

    Returns this

setEulerAngles

  • setEulerAngles(x: number, y: number, z: number): void

setFrom

  • setFrom(array: ArrayLike<number>): this

Generated using TypeDoc