Find the other | Function to find the other - end point of diameter ; Find end point for x coordinates ; Find end point for y coordinates ; Driver code
function endPointOfDiameterofCircle ( x1 , y1 , c1 , c2 ) { document . write ( " " + ( 2 * c1 - x1 ) + " " ) ; document . write ( " " + ( 2 * c2 - y1 ) ) ; } let x1 = - 4 , y1 = - 1 ; let c1 = 3 , c2 = 5 ; endPointOfDiameterofCircle ( x1 , y1 , c1 , c2 ) ;