I wanted to calculate the angle between two triangles in 3D space. The two triangles will always share exactly two points. e.g.
Triangle 1:
Point1 (x1, y1, z1),
Point2 (x2, y2, z2),
Point3 (x3, y3, z3).
Triangle 2:
Point1 (x1, y1, z1),
Point2 (x2, y2, z2),
Point4 (x4, y4, z4).
Is there a way to calculate the angle between them efficiently in CUDA?