Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You need three points for an angle. Or two if you consider the angular component of a vector in polar coordinates. In C++, represent a 2D point as a std::complex<double> type. Check out the std::complex, std::polar, and std::arg functions.