A while ago I tried writing a postscript function that draws flux lines for electric current or magnetic fields. While this still hasn't happened I wrote essentially all vector operations in 2D I could think of and those are collected in the attached file. Nothing too fance but as optimized as I could. All functions are bound, thus will be precompiled and use only stack operations, no dictionaries.
| Attachment | Size |
|---|---|
| vector2d.ps | 4.66 KB |