cpoint
twod.cpoint
¶
Classes¶
CPoint(x: float | int = 0, y: float | int = 0)
¶
Functions¶
ccw(b: Any, c: Any) -> float
¶
Returns a float indicating the winding direction of the points [self, b, c].
If result > 0, clock-wise winding. If result < 0, counter clock-wise winding (ccw). If result = 0, the three points are colinear.
Note: ccw is also 2*area of the triangle [self, b, c]