[metapost] Re: new is_clockwise routine

Werner LEMBERG wl at gnu.org
Sun Nov 27 01:21:10 CET 2005


> Finding the direction at which a curve turns at any given
> point is easy: just find the sign of the cross product [...]

In my macros I use the cross product to check for grazing intersection
only.

> In general, to find the clockwiseness of a single Bézier
> cubics it suffices to check [...]

Far too complicated and slow to be implemented as macros IMHO.


    Werner



More information about the metapost mailing list