The Point.flipX() method returns a new Point that mirrors the original point around the X-value of the point you pass it. If you do not pass in a point, it will default to mirroring around an X-value of zero.
Point.flipX()
Point
Point point.flipX(Point mirror = false)