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.
有谁知道一个库,可以轻松输入边的角度和长度的参数,并让它使用三角函数自动推断未给定的角度和长度?即使它的性能很差,它对于原型设计也非常有用,并且可以优化性能(甚至提供表查找和排序)。如果那里没有类似的东西,我可能会写它。
谢谢, umop
很难找到一个库,因为 trig 非常简单,你只需要做一个快速的公式。
a^2 + b^2 = c^2 s=o/h c=a/h t=o/a
我在想写你自己的函数来做这些家务会非常非常快:)