I have a triangle defined by 3 points (System.Numerics.Vector3, I'm not using Unity3d):
A [-0,21090554, 3,81115985, -23,54532623]
B [0,01877949, 3,79133320, 23,49146652]
C [33,08344650, 1,99846101, 0,20934258].
As you can see triangle is slightly tilted and is not parallel to the ground:
I need to rotate the triangle so it will become parallel to the ground (all three points Y coordinates will become the same).
So I need to calculate a rotation to align triangle normal with world up vector [0, 1, 0] (vertical normal on my picture is [0, 10, 0] because [0, 1, 0] vector will be too short to see and to distinguish it from the triangle normal).
I'm new to 3D and have no idea how to calculate a rotation (Quaternion or Matrix I guess) and apply it to all triangle points.