procon

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub mugen1337/procon

:warning: Geometry/Angle.hpp

Required by

Code

// angle of a-b-c
Real get_smaller_angle(Point a,Point b,Point c){
    Point v=a-b,w=c-b;
    auto A=atan2(imag(v),real(v));
    auto B=atan2(imag(w),real(w));
    if(A>B) swap(A,B);
    Real res=B-A;
    return min(res,pi*2.0-res);
}
#line 1 "Geometry/Angle.hpp"
// angle of a-b-c
Real get_smaller_angle(Point a,Point b,Point c){
    Point v=a-b,w=c-b;
    auto A=atan2(imag(v),real(v));
    auto B=atan2(imag(w),real(w));
    if(A>B) swap(A,B);
    Real res=B-A;
    return min(res,pi*2.0-res);
}
Back to top page