defold-typescript
Get startedGuidesAPILibraries
GitHub repository
API
  • Globals

    • globals
  • Global types

    • Hash
    • Matrix4
    • Opaque
    • Quaternion
    • Url
    • Vector
    • Vector3
    • Vector4
  • Lua Standard

    • base
    • bit
    • coroutine
    • debug
    • io
    • math
    • os
    • package
    • string
    • table
  • Defold

    • b2d
    • b2d.body
    • buffer
    • camera
    • collectionfactory
    • collectionproxy
    • crash
    • factory
    • font
    • go
    • graphics
    • gui
    • html5
    • http
    • iac
    • iap
    • image
    • json
    • label
    • liveupdate
    • model
    • msg
    • particlefx
    • physics
    • profiler
    • push
    • render
    • resource
    • socket
    • sound
    • sprite
    • sys
    • tilemap
    • timer
    • types
    • vmath
    • webview
    • window
    • zlib
On this page
  • Functions
  • mul(rhs: Quaternion): Quaternion
  • Properties
  • x: number
  • y: number
  • z: number
  • w: number

Quaternion

A rotation quaternion with x, y, z, and w components.

Functions

  • mul(rhs: Quaternion): Quaternion

mul(rhs: Quaternion): Quaternion

Lua * operator.

Parameters

  • rhs: Quaternion

Returns

  • Quaternion

Properties

x: number

y: number

z: number

w: number

PreviousOpaqueNextUrl

On this page

  • Functions
  • mul(rhs: Quaternion): Quaternion
  • Properties
  • x: number
  • y: number
  • z: number
  • w: number