Generate text that is semantically similar to this text: a method used to calculate the distance between stars is 3 dimensional trigonometry .
you only need two-dimensional trigonometry if you know the distances to the two stars and their angular separation .