空間類有一個點云,需要將其投影到任意的一個平面上。
這個平面確定如下:
U = {-sin(theta), cos(theta), 0}
V = {cos(theta)*sin(phi), sin(theta)*sin(phi), cos(phi)}
Center = {cos(theta)*cos(phi), sin(theta)*cos(phi), sin(phi)}*r
每個點P在平面自身上的投影坐標[U, V]由下式給出
[x', y'] = [dot(P - Center, U), dot(P - Center, V)]