@sstorsveen/maths - v2.0.1
    Preparing search index...

    Function perpInto

    • Sets the elements of the 2D vector b so it becomes perpendicular to the 2D vector a.

      The direction of b with respect to a will be "to the right", i.e. rotated 90 degrees clockwise

      Parameters

      • a: Vec2

        a 2-element vector object

      • b: Vec2

        a 2-element vector in which to store the result

      Returns Vec2

      b as a vector perpendicular to a