pf/visibility_graph_2d/visibility_graph_generator.cpp
ues::math::numeric_type compute_angle ( const ues::geom::point<2> & origin, const ues::geom::point<2> & end, const ues::math::numeric_type & epsilon )
{
    ues::math::numeric_type result = origin.angle_to ( end ) - ues::math::pi / 2;

    if ( result < -epsilon )
        result += 2 * ues::math::pi;

    return result;
}
/** Computes the angle between two points. The value returned is a number between 0 and 2*pi which
 * indicates the size, in radians, of a clockwise angle with one side being parallel to the positive
 * y-axis and the other side the segment that connects both points. */
Computes the angle between two points. The value returned is a number between 0 and 2*pi which
indicates the size, in radians, of a clockwise angle with one side being parallel to the positive
y-axis and the other side the segment that connects both points.
Computes the angle between two points . The value returned is a number between 0 and 2 * pi which indicates the size in radians of a clockwise angle with one side being parallel to the positive y - axis and the other side the segment that connects both points .
ues::math::numeric_type compute_angle ( const ues::geom::point<2> & origin, const ues::geom::point<2> & end, const ues::math::numeric_type & epsilon )
{
    ues::math::numeric_type result = origin.angle_to ( end ) - ues::math::pi / 2;
    if ( result < -epsilon )
        result += 2 * ues::math::pi;
    return result;
}
ues :: math :: numeric_type compute_angle ( const ues :: geom :: point < 2 > & origin , const ues :: geom :: point < 2 > & end , const ues :: math :: numeric_type & epsilon ) { ues :: math :: numeric_type result = origin . angle_to ( end ) - ues :: math :: pi / 2 ; if ( result < - epsilon ) result += 2 * ues :: math :: pi ; return result ; }
Computes the angle between two points.
Computes the angle between two points .