Back to Parent

void threespaceToTriangle(float x, float y, float z) {
  tri[0] = sqrt( sq(x) + sq(y - 1) + sq(z) );
  tri[1] = sqrt( sq( (-(sqrt(3)) / 2) - x) + sq(-0.5 - y) + sq(z) );
  tri[2] = sqrt( sq( (sqrt(3) / 2) - x) + sq(-0.5 - y) + sq(z) );
}
Click to Expand

Content Rating

Is this a good/useful/informative piece of content to include in the project? Have your say!

0