src/classify/fpoint.cpp
float NormalizedAngleFrom(FPOINT *Point1, FPOINT *Point2, float FullScale) {
  float NumRadsInCircle = 2.0 * M_PI;

  float Angle = AngleFrom(*Point1, *Point2);
  if (Angle < 0.0) {
    Angle += NumRadsInCircle;
  }
  Angle *= FullScale / NumRadsInCircle;
  if (Angle < 0.0 || Angle >= FullScale) {
    Angle = 0.0;
  }
  return (Angle);
}
/**
 * Return the angle from Point1 to Point2 normalized to
 * lie in the range 0 to FullScale (where FullScale corresponds
 * to 2*pi or 360 degrees).
 * @param Point1 points to compute angle between
 * @param Point2 points to compute angle between
 * @param FullScale value to associate with 2*pi
 * @return angle
 */
Return the angle from Point1 to Point2 normalized to
lie in the range 0 to FullScale (where FullScale corresponds
to 2*pi or 360 degrees).
@param Point1 points to compute angle between
@param Point2 points to compute angle between
@param FullScale value to associate with 2*pi
@return angle
Return the angle from Point1 to Point2 normalized to lie in the range 0 to FullScale ( where FullScale corresponds to 2 * pi or 360 degrees ) . @param Point1 points to compute angle between @param Point2 points to compute angle between @param FullScale value to associate with 2 * pi @return angle
float NormalizedAngleFrom(FPOINT *Point1, FPOINT *Point2, float FullScale) {
  float NumRadsInCircle = 2.0 * M_PI;
  float Angle = AngleFrom(*Point1, *Point2);
  if (Angle < 0.0) {
    Angle += NumRadsInCircle;
  }
  Angle *= FullScale / NumRadsInCircle;
  if (Angle < 0.0 || Angle >= FullScale) {
    Angle = 0.0;
  }
  return (Angle);
}
float NormalizedAngleFrom ( FPOINT * Point1 , FPOINT * Point2 , float FullScale ) { float NumRadsInCircle = 2.0 * M_PI ; float Angle = AngleFrom ( * Point1 , * Point2 ) ; if ( Angle < 0.0 ) { Angle += NumRadsInCircle ; } Angle *= FullScale / NumRadsInCircle ; if ( Angle < 0.0 || Angle >= FullScale ) { Angle = 0.0 ; } return ( Angle ) ; }
Return the angle from Point1 to Point2 normalized to
 lie in the range 0 to FullScale (where FullScale corresponds
 to 2*pi or 360 degrees).
Return the angle from Point1 to Point2 normalized to lie in the range 0 to FullScale ( where FullScale corresponds to 2 * pi or 360 degrees ) .