Thank you VERY much for the informative post! btw: in terms of using the API to finish a triangle, the reason I'm asking all these questions is that I'm not using an API. If I did, even though I would have a nice app, I wouldn't understand the math as well.
Again, thank you.