it works! it calculates 3 distances and 3 sin+cos values! The order of the points must be in the correct order or else the triangle will dissapear. (backface culling!) old version is up to 1.5 times slower : https://scratch.mit.edu/projects/1207119699/