I have a triangle in 3d space, and know all the angles and the coordinates of the 3 corners.

I also have a point on one of the edges

from that point I want to draw a perpendicular line, that follows the plane of the triangle- how would I do this mathematically