Function squaredDistance

  • Calculates the squared euclidian distance between two vec2's

    Parameters

    • a: Vec2

      the first operand

    • b: Vec2

      the second operand

    Returns number

    squared distance between a and b