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.

According to this Wikipedia article, if the origin is at the centre, then you can take the vertices to be
$$(\pm 1, 0, -1/\sqrt{2}),\,\,\,\,\, (0, \pm 1, 1/\sqrt{2}).$$
The article does also give some alternatives such as $(1, 1, 1, ), (1, -1, -1), \dots $ which might be easier to work with.