Class ObservableVector3d

A Vector3d object that provide notification by executing the given callback when the vector is changed.

Hierarchy (view full)

Constructors

  • Parameters

    • x: number = 0

      x value of the vector

    • y: number = 0

      y value of the vector

    • z: number = 0

      z value of the vector

    • settings: {
          onUpdate: Function;
          scope: undefined | object;
      }

      additional required parameters

      • onUpdate: Function

        the callback to be executed when the vector is changed

      • scope: undefined | object

        the value to use as this when calling onUpdate

    Returns ObservableVector3d

Properties

_x: any
_y: any
_z: any
onUpdate: undefined | Function
scope: undefined | Function

Accessors

Methods

  • set the vector value without triggering the callback

    Parameters

    • x: number

      x value of the vector

    • y: number

      y value of the vector

    • Optionalz: number

      z value of the vector

    Returns ObservableVector3d

    Reference to this object for method chaining

    setMuted

    ObservableVector3d