melonjs
    Preparing search index...

    Class ObservableVector3d

    Represents a point in a 3D coordinate vector that can be observed for changes.

    Index

    Constructors

    • Creates a new ObservableVector3d instance.

      Parameters

      • x: number = 0

        The x-coordinate of the vector. Default is 0.

      • y: number = 0

        The y-coordinate of the vector. Default is 0.

      • z: number = 0

        The z-coordinate of the vector. Default is 0.

      • Optionalcallback: () => void

        The callback function to be called when the point changes. Default is undefined.

      Returns ObservableVector3d

    Accessors

    Methods

    • return true if this vector is equal to the given values or vector

      Parameters

      • ...args:
            | [number, number]
            | [number, number, number]
            | [number]
            | [Vector2d]
            | [Vector3d]
            | [ObservableVector3d]

        other vector or vector components

      Returns boolean

      true if both vectors are equal