12 Jan
2024
12 Jan
'24
4:06 p.m.
Hi Shiv,
Do we have a geometry library for common operations like finding tangents, perpendiculars, circumcircle, orthocenters and such?
I don’t think we have anything like that specifically in the MetaFun world, but if there is a MetaPost package you like, you can use it with MetaFun. For example, the TeX Live installation includes both ConTeXt and 3dgeom.mp, so you should be able to use the 3dgeom package in MetaFun simply with "input 3dgeom" in your MetaPost code. (I did a quick check, successfully drawing a drawing a cube with 3dgeom. I have not tested it beyond than that.) If there isn’t a MetaPost package for what you want, Lua may be useful for doing the calculations. Gavin