GraphUtilities`
GraphUtilities`

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].

Details and Options

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

Examples

open allclose all

Basic Examples  (1)

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

This adds edge labels in GraphPlot3D:

Interactive Examples  (1)

Wolfram Research (2007), LineScaledCoordinate, Wolfram Language function, https://reference.wolfram.com/language/GraphUtilities/ref/LineScaledCoordinate.html.

Text

Wolfram Research (2007), LineScaledCoordinate, Wolfram Language function, https://reference.wolfram.com/language/GraphUtilities/ref/LineScaledCoordinate.html.

CMS

Wolfram Language. 2007. "LineScaledCoordinate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/GraphUtilities/ref/LineScaledCoordinate.html.

APA

Wolfram Language. (2007). LineScaledCoordinate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/GraphUtilities/ref/LineScaledCoordinate.html

BibTeX

@misc{reference.wolfram_2023_linescaledcoordinate, author="Wolfram Research", title="{LineScaledCoordinate}", year="2007", howpublished="\url{https://reference.wolfram.com/language/GraphUtilities/ref/LineScaledCoordinate.html}", note=[Accessed: 19-April-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_linescaledcoordinate, organization={Wolfram Research}, title={LineScaledCoordinate}, year={2007}, url={https://reference.wolfram.com/language/GraphUtilities/ref/LineScaledCoordinate.html}, note=[Accessed: 19-April-2024 ]}