'direction' of curve with increasing p
at this point: +1 means that increasing
p
moves to the right (or up for vertical line); -1 means that increasing p
moves
to the left (or down for vertical line).
dx/dp
derivative of x
with respect to p
dy/dp
derivative of y
with respect to p
nearest index in the list of path points stored in a NumericalPath
perpendicular normal unit vector at the point, X component
(normalXdp, normalYdp)
is derivative of normal vector with respect to arc length
p
perpendicular normal unit vector at the point, Y component
(normalXdp, normalYdp)
is derivative of normal vector with respect to arc length
p
distance along path, measured in arc length
radius of curvature of the path at this point
whether to calculate radius of curvature
slope may be infinite
(slopeX, slopeY)
is a unit vector tangent to curve at point, in direction of
increasing p
(slopeX, slopeY)
is a unit vector tangent to curve at point, in direction of
increasing p
horizontal location of the point
vertical location of the point
Copies all fields of the given PathPoint into this PathPoint
the PathPoint to copy from
Returns the distance from the given point
to the normal line thru this
PathPoint. The normal line passes thru this PathPoint's
location along the vector given by
getNormal.
distance d from point (x1, y1) to line A x + B y + C = 0 is
d = | A x1 + B y1 + C | / sqrt(A^2 + B^2)
Let the normal at path point (x0, y0) be (nx, ny).
The line thru (x0, y0) with slope ny/nx is
y - y0 = (ny/nx)(x - x0)
Rearrange:
- ny x + nx y + ny x0 - nx y0 = 0
A = -ny
B = nx
C = ny x0 - nx y0
the point of interest
distance from the given location to the line along the normal from this PathPoint
Generated using TypeDoc
Represents a point along a NumericalPath, used for input and output of NumericalPath methods. Instance properties are public to avoid having numerous getter and setter methods.