It takes mammoth strength to let go and say, "OK, this is not my area of expertise and here is where I need help."
我们要消耗非常多的力气才能这样坦然面对:“是的,这不是我的强项,我需要别人的帮助。”
OK, the best way to it, now that we have the gradient vector, is actually to directly say oh, we know the normal vector to this plane.
最好的方法是,既然我们已经有了梯度向量,就可以直接说,我们知道了切平面的法向量。
This is OK if your pluglet runs very quickly, but if it is a long running-process (or interacts with external resources, say on a network), then you don't want to execute on the UI thread.
如果您的 pluglet 运行非常快,这样做没问题,但是如果它是一个漫长的运行过程(或者与外部资源相互交互,比如说在网络上),那么您也许不想在 UI 线程上执行。
应用推荐