|
static bool cwisept (ads_point St,ads_point Mid, ads_point End) {
if ((((Mid[X] - St[X]) * (End[Y] - Mid[Y])) - ((Mid[Y] - St[Y]) * (End[X] - Mid[X]))) < 0) {
//acutPrintf("/n顺时针方向 ");
return (true);
} else {
//acutPrintf("/n逆时针反方向");
return (false);
} |
|