Function isSquare

  • Checks to see if a given polygon is a square (used for collision detection)

    Parameters

    • points: Vec2[]

      List of points that make up the polygon

    Returns boolean

    Returns true if the polygon is a square, false if it is not

Generated using TypeDoc