On 2/7/18 6:06 AM, Dhananjay wrote:
Hello all,
I have 3 points with coordinates (x0,y0,z0), (x1,y1,z1) and (x2,y2,z2).
I also have a line joining points (x1,y1,z1) and (x2,y2,z2).
For example,
p0=[5.0, 5.0, 5.0]
p1=[3.0, 3.0, 3.0]
p2=[4.0, 4.0, 4.0]
a = np.array(p0)
b = np.array(p1)
c = np.arra
On 07-02-18 12:06, Dhananjay wrote:
> Hello all,
>
> ...
> I want to write a script that can calculate shortest distance d between
> point (x0,y0,z0) and the line((x1,y1,z1), (x2,y2,z2)).
> In other words,
> d = distance(a, line(b,c))
> Since I have information of the coordinates of these points on
On Wed, Feb 7, 2018 at 10:06 PM, Dhananjay wrote:
> Hello all,
>
> I have 3 points with coordinates (x0,y0,z0), (x1,y1,z1) and (x2,y2,z2).
> I also have a line joining points (x1,y1,z1) and (x2,y2,z2).
> For example,
> p0=[5.0, 5.0, 5.0]
> p1=[3.0, 3.0, 3.0]
> p2=[4.0, 4.0, 4.0]
>
> a = np.array(p