【问题标题】:Processing PVector heading() formula处理 Pvector heading() 公式
【发布时间】:2018-01-01 22:16:33
【问题描述】:

有人知道 Processing 在 PVector heading() 中使用的公式吗? PVector::heading

非常感谢

【问题讨论】:

  • 处理是开源的。就像Tordek's answer 说的那样,您可以自己查找实现。

标签: vector processing


【解决方案1】:

its implementation 中,它使用arctan 函数。角的正切是对边和相邻边的长度之比 (y/x),arctan 是切线的反函数,即它返回切线所在的角度 (y/x)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-12-02
    • 2023-03-15
    • 2020-05-18
    • 1970-01-01
    相关资源
    最近更新 更多