code/include/k-regret/contour/geometry.hpp
/** Calculates the arctan of the angle given by vector p */
Calculates the arctan of the angle given by vector p
Calculates the arctan of the angle given by vector p
inline
std::optional< Angle >
  arctan_angle( Point< 2 > const p )
  {
    if( p[ 0 ] == 0.0f ) { return std::nullopt; }
    return p[ 1 ] / p[ 0 ];
  }
inline std :: optional < Angle > arctan_angle ( Point < 2 > const p ) { if ( p [ 0 ] == 0.0f ) { return std :: nullopt ; } return p [ 1 ] / p [ 0 ] ; }
Calculates the arctan of the angle given by vector p
Calculates the arctan of the angle given by vector p