@studiokeywi/banjo - v0.0.1
    Preparing search index...

    Function subtract

    • Subtracts two vectors together by subtracting their respective components

      Parameters

      • left: Vector2

        Left operand

      • right: Vector2

        Right operand

      • Optionalout: Vector2<number, number>

        Optional vector to store the output (can be used to inject results into an existing vector)

      Returns Vector2

      The result of subtraction

    • Subtracts a single value to both components of a vector

      Parameters

      • vector: Vector2

        Vector in question

      • scalar: number

        Scalar value

      • Optionalout: Vector2<number, number>

        Optional vector to store the output (can be used to inject results into an existing vector)

      Returns Vector2

      The result of subtraction