Functions | |
template<typename T , typename R = T> | |
R | MR::calcOrientedArea (const Contour2< T > &contour) |
template<typename T , typename R = T> | |
Vector3< R > | MR::calcOrientedArea (const Contour3< T > &contour) |
template<typename To , typename From > | |
To | MR::copyContour (const From &from) |
copy double-contour to float-contour, or vice versa | |
template<typename To , typename From > | |
To | MR::copyContours (const From &from) |
copy double-contours to float-contours, or vice versa | |
R MR::calcOrientedArea | ( | const Contour2< T > & | contour | ) |
>0 for clockwise loop, < 0 for CCW loop
R | is the type for the accumulation and for result |
Vector3< R > MR::calcOrientedArea | ( | const Contour3< T > & | contour | ) |
returns the vector with the magnitude equal to contour area, and directed to see the contour in ccw order from the vector tip
R | is the type for the accumulation and for result |
To MR::copyContour | ( | const From & | from | ) |
copy double-contour to float-contour, or vice versa
To MR::copyContours | ( | const From & | from | ) |
copy double-contours to float-contours, or vice versa