LineScaledCoordinate

As of Version 10, all the functionality of the GraphUtilities package is built into the Wolfram System. >>

LineScaledCoordinate[{{x1,y1},{x2,y2},,{xk,yk}},r]
gives the coordinate of a point in the polyline {{x1,y1},{x2,y2},,{xk,yk}}, at a scaled distance of r from point {x1,y1}.

LineScaledCoordinate[{{x1,y1},{x2,y2},,{xk,yk}}]
is the same as LineScaledCoordinate[{{x1,y1},{x2,y2},,{xk,yk}},0.5].

DetailsDetails

  • To use LineScaledCoordinate, you first need to load the Graph Utilities Package using Needs["GraphUtilities`"].
  • LineScaledCoordinate works for both two and three dimensions.

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

In[1]:=
Click for copyable input

This displays the vertices that form the edges at a point 60% of the way down the arrow:

In[2]:=
Click for copyable input
Out[2]=

This adds edge labels in GraphPlot3D:

In[3]:=
Click for copyable input
Out[3]=
Translate this page: