预备知识:基础三角函数sin 、cos、方位角、仰角
方位角:the angular distance usually measured clockwise from the north point of the horizon to the intersection with the horizon of the vertical circle passing through a celestial body — from WiseDictionary
意思就是说水平圆片的角 θ \theta θ 范围 是 从0~2π
仰角:在视线所在的垂直平面内,水平线以上的视线与水平线所形成的夹角 ϕ \phi ϕ
在该图片中,x轴指向屏幕外,与y轴垂直,Z轴指向上方。且线段|PO| = R
即:R* cos( ϕ \phi ϕ) = z;
R* sin( ϕ \phi ϕ) = |OP1| (注P1为点P在圆形平面xoy 上的垂点)
沿着P1作线段 垂直x轴于P2,
线段|P1P2|就是y, |OP2|就是x
|p1p2| = y
|Op2| = x
对于球上一点P(x,y,z),;
P ( x , y , z ) = { R ∗ s i n ( t h e t a ) ∗ c o s (