\r
\n" );
document.write( "\n" );
document.write( "Well, it is an algebraic solution to note the following, when traveling from B to A: \r
\n" );
document.write( "\n" );
document.write( " Go 3 units to the right (add 3 to x)
\n" );
document.write( " Go 5 units down (subtract 5 from y)\r
\n" );
document.write( "\n" );
document.write( "So from that, one can write
\n" );
document.write( "j = Cx + 3
\n" );
document.write( "k = Cy - 5\r
\n" );
document.write( "\n" );
document.write( "Therefore, j = 2+3 = 5 and k = 4-5 = -1\r
\n" );
document.write( "\n" );
document.write( "Thus, D is at (5,-1).\r
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "One way to check this is to make sure the two diagonals are equal length:\r
\n" );
document.write( "\n" );
document.write( " A-C: 
\n" );
document.write( " B-D:
so the two diagonals are equal length and the polygon is a square.\r
\n" );
document.write( "
\n" );
document.write( "
\n" );
document.write( "\n" );
document.write( "
\n" );
document.write( "