Options
All
  • Public
  • Public/Protected
  • All
Menu

const yaw = () => -atan2f( x,z ) const pitch = () => atan2f( y, sqrtf( xx+zz ) )

Hierarchy

Index

Constructors

constructor

Properties

Private _position

_position: Vector3 = ...

Private _rotation

_rotation: Quaternion = ...

Private _scale

_scale: Vector3 = ...

Protected Readonly _transformationMatrix

_transformationMatrix: SimpleMat4 = ...

Accessors

position

rotation

scale

transformation

  • get transformation(): Mat4

Methods

clone

move

setEulerRotation

  • setEulerRotation(x: number, y: number, z: number): void
  • Parameters

    • x: number

      rotation about X axis in radians

    • y: number

      rotation about Y axis in radians

    • z: number

      rotation about Z axis in radians

    Returns void

setPosition

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

setScale

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

Private updateTransformationMatrix

  • updateTransformationMatrix(): Mat4

Generated using TypeDoc