再次,我会提醒我可能会遗漏一些东西,但我认为这是非常简单的向量添加:
let point A be (700, 500)
let point B be (400, 400)
let point C be (650, 100)
let point D be (???, ???)
the vector from A to B is: (-300, -100) // i.e. x = B-A, 400 - 700, etc
the vector from A to C is: (-50, -400)
Adding these together yields the vector from A to D: (-350, -500).
Adding that vector to point A yields the coordinates of the point D: (350, 0)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
12794 次 |
| 最近记录: |