Reflection of a point at 180 degree rotation of another point | C # Program to find the 180 degree reflection of one point around another point . ; Driver code
using System ; public class GFG { static void findPoint ( int x1 , int y1 , int x2 , int y2 ) { Console . WriteLine ( " ( " + ( int ) ( 2 * x2 - x1 ) + " , " + ( int ) ( 2 * y2 - y1 ) + " ▁ ) " ) ; } static public void Main ( String [ ] args ) { int x1 = 0 , y1 = 0 , x2 = 1 , y2 = 1 ; findPoint ( x1 , y1 , x2 , y2 ) ; } }