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

    Represents a direction in space.

    Implements

    Index

    Constructors

    • Parameters

      • x: number

        X coordinate to initialize with.

      • y: number

        Y coordinate to initialize with.

      • z: number

        Z coordinate to initialize with.

      • w: number

        W coordinate to initialize with.

      Returns Vector4

    Accessors

    Methods

    • Parameters

      • index: number

        Index of the vector to get. 0 for x, 1 for y, 2 for z, 3 for w.

      Returns number

      Value at index.

    • 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

      • index: number

        Index of the vector to change. 0 for x, 1 for y, 2 for z, 3 for w.

      • value: number

        New value of this 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