I am trying to draw an equilateral/regular tetrahedron in Processing (subset of Java), so I have to define 4 triangles that meet at the 4 vertices. I have been able to find the coordinates for the vertices assuming 1 of the vertices is at the origin.
However, the tetrahedron rotates, and I would like its rotation to be about its centroid. This where I get stuck, I need to define the 4 planes of the tetrahedron when the centroid is at the origin.
I hope my question is clear. :/ Thanks in advance.