Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果物体和相机之间的距离是 500,视角是 45,如果我想让物体刚好填满整个屏幕,我可以在原点设置一个顶点,并将 500 * Math.tan(45/2) 设置为另一个顶点的 y。我已经测试了它,它是不正确的,我怎样才能弄清楚y?
我已经自己解决了这个问题。Math.tan 只接收弧度,所以我应该把它改成这样:500 * Math.tan(45/2/180 * Math.PI)