PathParameter Command
- PathParameter( <Point On Path> )
-
Returns the parameter (i.e. a number ranging from 0 to 1) of the point that belongs to a path.
Let f(x) = x² + x - 1
and A is a point attached to this function with coordinates (1,1) (you can create such point using the point on object tool or A=Point(f)
, SetCoords(A,1,1)
commands). Then PathParameter(A)
yields a
= 0.47.
In the following table f(x)=x1+|x| is a function used to map all real numbers into interval (-1,1) and ϕ(X,A,B)=→AX⋅→AB|AB|2 is a linear map from line AB to reals which sends A to 0 and B to 1.
Line AB |
f(ϕ(X,A,B))+12 |
Ray AB |
f(ϕ(X,A,B)) |
Segment AB |
ϕ(X,A,B) |
Circle with center C and radius r |
Point X=C+(r⋅cos(α),r⋅sin(α)), where α∈]−π,π] has path parameter α+π2π |
Ellipse with center C and semiaxes →a, →b |
Point X=C+→a⋅cos(α)+→b⋅sin(α) , where α∈]−π,π] has path parameter α+π2π |
Hyperbola |
Point X=C±→a·cosh(t)+→b·sinh(t) has path parameter f(t)+14 or f(t)+34 |
Parabola with vertex V and direction of axis →v. |
Point V+12p⋅t2⋅→v+p⋅t⋅→v⊥ has path parameter f(t)+12. |
Polyline A1…An |
If X lies on AkAk+1, path parameter of X is k−1+ϕ(X,A,B)n−1 |
Polygon A1…An |
If X lies on AkAk+1 (using An+1=A1), path parameter of X is k−1+ϕ(X,A,B)n |
List of paths L={p1,…,pn} |
If X lies on pk and path parameter of X w.r.t. pk is t, path parameter of X w.r.t.L is k−1+tn |
List of points L={A1,…,An} |
Path parameter of Ak is k−1n. Point[L,t] returns A⌊tn⌋+1. |
Locus |
|
Implicit polynomial |
No formula available. |