You can expose it to GDScript, check how other math functions are done, it usually is a couple of lines on the class db and the class where it will be added (search for expose on the repo PRs for examples).
Talk with core devs via IRC if you have intentions to add a PR too, because I think that triangulation libraries are going to change.