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

    Function scale

    • Calculates the scaled version of a vector

      Parameters

      • vector: Vector2

        Vector in question

      • scale: number

        Factor by which each component of the vector will be scaled

      • Optionalout: Vector2<number, number>

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

      Returns Vector2

      The scaled vector

    • Calculates the scaled version of a vector

      Parameters

      • vector: Vector2

        Vector in question

      • scaleX: number

        Factor by which the x component of the vector will be scaled

      • scaleY: number

        Factor by which the y component of the vector will be scaled

      • Optionalout: Vector2<number, number>

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

      Returns Vector2

      The scaled vector