Thread View: comp.lang.apl
1 messages
1 total messages
Started by EllisMorgan
Sat, 11 Jul 2026 14:39
drawing ellipses
Author: EllisMorgan
Date: Sat, 11 Jul 2026 14:39
Date: Sat, 11 Jul 2026 14:39
17 lines
1899 bytes
1899 bytes
This subject came up in a recent discussion so I am posting a copy of
what was posted here on 2009. It helped me then, belayed thanks Joakim.
HOW_ELLIPSE;ellipse
ā this is the original function from Joakim (published in CLA in 2009)
ellipseā{
pos rot start end scale nsegsāāµ
thetaāstart+0,+\nsegsā“(start-end)Ć·nsegs
sinā1āā
cosā2āā
xācos theta
yāsin theta
rotmatā{2 2ā“(cos āµ)(-sin āµ)(sin āµ)(cos āµ)}rot
scalematā2 2ā“(1āscale)0 0(2āscale)
xformā0 0 1,[1]āØ(rotmat+.Ćscalemat),pos
vāxform+.Ć1,[1]āØx,[0.5]y
āĀÆ1 0āv
}
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads