Code Library Of Others/sgtlaugh/Point In Polygon.cpp
Polygon(int ni, struct Point* T, int flag){
        n = ni;
        for (int i = 0; i < n; i++){
            if (flag == CLOCKWISE) ar[i] = T[i];
            else ar[i] = T[n - i - 1];
        }
    }
/// Points in T are either in anti-clockwise or clockwise order
Points in T are either in anti-clockwise or clockwise order
Points in T are either in anti - clockwise or clockwise order
Polygon(int ni, struct Point* T, int flag){
        n = ni;
        for (int i = 0; i < n; i++){
            if (flag == CLOCKWISE) ar[i] = T[i];
            else ar[i] = T[n - i - 1];
        }
    }
Polygon ( int ni , struct Point * T , int flag ) { n = ni ; for ( int i = 0 ; i < n ; i ++ ) { if ( flag == CLOCKWISE ) ar [ i ] = T [ i ] ; else ar [ i ] = T [ n - i - 1 ] ; } }
Points in T are either in anti-clockwise or clockwise order
Points in T are either in anti - clockwise or clockwise order