added IsCCW function
This commit is contained in:
parent
7ffcc407c9
commit
1aecce2033
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue