Trouble in angle calculation

hi , i have a little problem with this subpatch to obtain orientation of the quad following pen mouvement.

I have sometimes a jump of angle. Could anybody have a look and tell me what is wrong ( a case missing ? )

cheers

Orientation(Gesture).v4p (38.9 kB)

have you tried Heading (Animation)?

damned… recreating the wheel … thanks joreg !

by the way, any other Powerfull nodes for usefull for Painting ?