I need to write a Python function that computes the direction a triangle slopes. More specifically, I need to be able to compute which way a marble would roll if placed on a triangle defined by three points and at what point the marble would fall off the edge of that triangle.
Unfortunately, the math is beyond me. Any help would be much appreciated.
Here's a diagram that helps illustrate the situation: