@crow281/ts-file-module-template
    Preparing search index...

    Represents a 4 by 4 matrix for linear algebra calculations.

    Implements

    Index

    Constructors

    Accessors

    Methods

    • Parameters

      • x: number

        X coordinate to get.

      • y: number

        Y coordinate to get.

      Returns number

      Value at the given x and y coordinate.

    • Parameters

      • dimension: number

        Dimension we want to get the size of.

      Returns number

      Size of this dimension.

      All unused dimensions will return 0.

    • Parameters

      • position: number[]

        Position we want to retrieve value from.

        If position array has fewer dimensions than this array, they will be treated as 0.

      Returns number

      Value at position.

    • Parameters

      • x: number

        X coordinate to set.

      • y: number

        Y coordinate to set.

      • value: number

        Value to save to the given x and y coordinate.

      Returns void

    • Parameters

      • position: number[]

        Position we want to store value to.

        If position array has fewer dimensions than this array, they will be treated as 0.

      • value: number

        Value we want to store at position.

      Returns void