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

    Function normalize

    • Calculates the equivalent of a vector whose magnitude is 1

      Parameters

      • vector: Vector2

        Vector in question

      • Optionalout: Vector2 = ...

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

      Returns Vector2

      The normalized vector