public static SubpathDirection CalculateDirection(Subpath subpath)
 {
     return(SubpathFillAreaCalculator.CalculateSigned(subpath) <= 0 ? SubpathDirection.Clockwise : SubpathDirection.Counterclockwise);
 }
Example #2
0
 private static bool HasFillArea(Subpath subpath)
 {
     // area is larger than 1/20 of a pixel
     return(Math.Abs(SubpathFillAreaCalculator.CalculateSigned(subpath)) >= 0.05);
 }