如何使用距离和另一个点找到点? [英] how to find point using distance and another point ?
本文介绍了如何使用距离和另一个点找到点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好朋友
这里我试图找出位于A和B之间的点。
我有两点,
A(2,2)
B(3.72,26.74)
AB之间的距离是25.434
现在,我想找一个位于AB上的点距离A
和距离B的2/3(25.434)距离为1/3(25.434)。
所以有任何方法或代码可用于此解决方案
解决方案
((ba)* .333)+ a
它的向量数学
Hello Friends
here I am trying to find out the point which is located between of A and B.
I have two points,
A(2,2)
B(3.72,26.74)
distance between AB is 25.434
now, I want to find a point located on AB which has distance 1/3(25.434) from A
and 2/3(25.434) from B.
so is there any method or code for this solutions
解决方案
((b-a)*.333)+a
it's vector math
这篇关于如何使用距离和另一个点找到点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文