I am looking for general method or algorithm can render geometric objects in the most declarative way that is possible.
For example, using Quil libruary (Clojure binding for Processing language) or any other similar libruary I can simply draw lines and triangles.
But in this case I need to explicitly specify coordinates of points. It leads to manual computations and other complications.
So I am looking for or a way or a libruary to render illustration from declarative descripion. Declarative description in this case contains some named shapes and relations between them.
point A, B, C
line a, b
a contains A, B
line b intersects a at B