[NTG-context] question about MP drawing with dir

Alan Braslau braslau.list at comcast.net
Thu May 24 22:23:23 CEST 2018

On Thu, 24 May 2018 21:01:59 +0200
Pablo Rodriguez <oinos at gmx.es> wrote:

> dir seems magic to me. I don’t understand how it works, not even how
> it can be used for drawing not having an origin.

All MP drawings have an origin (0,0).

(dir angle) returns a pair on a unit circle surrounding the origin, i.e.
(cosd angle,sind angle) where cosd is the cosine function operating on
an angle in degrees.


More information about the ntg-context mailing list