Engine API Reference - v2.20.0-beta.0
    Preparing search index...

    Class InputDeltaAlpha

    Represents an input delta.

    Index

    Constructors

    Methods

    Constructors

    • Alpha

      Parameters

      • arg: number | number[]

        The size of the delta or an array of initial values.

      Returns InputDelta

    Methods

    • Alpha

      Adds another InputDelta instance to this one.

      Parameters

      • other: InputDelta

        The other InputDelta instance to add.

      Returns InputDelta

      Self for chaining.

    • Alpha

      Appends offsets to the current delta values.

      Parameters

      • offsets: number[]

        The offsets.

      Returns InputDelta

      Self for chaining.

    • Alpha

      Copies the values from another InputDelta instance to this one.

      Parameters

      • other: InputDelta

        The other InputDelta instance to copy from.

      Returns InputDelta

      Self for chaining.

    • Alpha

      The magnitude of the delta, calculated as the square root of the sum of squares of the values.

      Returns number

      • The magnitude of the delta.
    • Alpha

      Returns the current value of the delta and resets it to zero.

      Returns number[]

      • The current value of the delta.