ImageUtils.cpp
float findAngleBetweenPointsI(const CvPoint p1, const CvPoint p2)
{
	// Calculate the angle of in-plane-rotation of the face based on the angle of the 2 eye positions.
	float dx = (float)(p2.x - p1.x);
	if (dx == 0.0f)
		dx = 0.00000001f;	// Stop a divide-by-zero error.
	float radians = atan2((float) (p2.y - p1.y), dx);	// angle = inv_tan(dy / dx).
	return (radians * 180.0f / CV_PI);	// convert to degrees from radians.
}
// Calculate the angle between the 2 given integer points (in degrees).

Calculate the angle between the 2 given integer points (in degrees).
Calculate the angle between the 2 given integer points ( in degrees ) .
float findAngleBetweenPointsI(const CvPoint p1, const CvPoint p2)
{
	float dx = (float)(p2.x - p1.x);
	if (dx == 0.0f)
		dx = 0.00000001f;	
	float radians = atan2((float) (p2.y - p1.y), dx);	
	return (radians * 180.0f / CV_PI);	
}
float findAngleBetweenPointsI ( const CvPoint p1 , const CvPoint p2 ) { float dx = ( float ) ( p2 . x - p1 . x ) ; if ( dx == 0.0f ) dx = 0.00000001f ; float radians = atan2 ( ( float ) ( p2 . y - p1 . y ) , dx ) ; return ( radians * 180.0f / CV_PI ) ; }
Calculate the angle between the 2 given integer points (in degrees).
Calculate the angle between the 2 given integer points ( in degrees ) .
// Calculate the angle of in-plane-rotation of the face based on the angle of the 2 eye positions.
 // Stop a divide-by-zero error.
 // angle = inv_tan(dy / dx).
 // convert to degrees from radians.
