计算笛卡尔空间中的偏移坐标
if I have 2 coordinate pointA(x,y) and pointB(x,y)
I need to calculate the offset coordinate at specific distance and angle 90 deg and 270 deg.
How can I?
Can't find the right formula.
How to get the coordinate of C,D,E,F?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
差异向量
垂直向量
向量长度(也许你的数学库中有现成的函数
Hypot
或类似函数)归一化(单位长度)向量
现在找到距离
dist
处的点:类似于B 周围的点
Difference vector
Perpendicular vector
Vector length (perhaps you have ready function
Hypot
or alike function in your math library)Normalized (unit length) vector
Now find points at distance
dist
:similar for points around B