added IsCCW function

This commit is contained in:
Nico Pietroni 2012-10-03 16:39:29 +00:00
parent 7ffcc407c9
commit 1aecce2033
1 changed files with 7 additions and 0 deletions

View File

@ -133,6 +133,13 @@ void PointDistance(const CoordType & q,
}
}
///retutn true if the face is contuerclockwise oriented
bool IsCCW()
{
ScalarType Area=(P(1)-P(0))^(P(2)-P(0));
return (Area>0);
}
}; //end Class