有人知道Processing在PVector heading()中使用的公式吗?PVector::heading
非常感谢
发布于 2018-01-01 22:16:34
在its implementation中,它使用了arctan函数。角度的切线是对边和相邻边的长度之比(y/x),arctan是切线的反函数,即它返回切线的角度(y/x)。
https://stackoverflow.com/questions/48050346
相似问题