For a curve on a Path, false means the Path will ignore this curve.
The quantity of arc length divisions within the curve.
An array of cached arc length values.
The default number of divisions within the curve.
Does the data of this curve need updating?
The first endpoint.
The second endpoint.
String based identifier for the type of curve.
Draws this curve on the given Graphics object.
The curve is drawn using Graphics.lineBetween so will be drawn at whatever the present Graphics line color is.
The Graphics object is not cleared before the draw, so the curve will appear on-top of anything else already rendered to it.
The Graphics instance onto which this curve will be drawn.
Get total curve arc length
Get a list of cumulative segment lengths.
These lengths are
Optionaldivisions: numberThe number of divisions or segments.
Get a sequence of evenly spaced points from the curve.
You can pass divisions, stepRate, or neither.
The number of divisions will be
divisions, if divisions > 0; orthis.getLength / stepRate, if stepRate > 0; orthis.defaultDivisions1 + divisions points will be returned.
Optionaldivisions: numberThe number of divisions to make.
OptionalstepRate: numberThe curve distance between points, implying divisions.
Optionalout: OAn optional array to store the points in.
Gets the resolution of the line.
Optionaldivisions: numberThe number of divisions to consider. Default 1.
Get a sequence of equally spaced points (by arc distance) from the curve.
1 + divisions points will be returned.
Optionaldivisions: numberThe number of divisions to make. Default this.defaultDivisions.
OptionalstepRate: numberStep between points. Used to calculate the number of points to return when divisions is falsy. Ignored if divisions is positive.
Optionalout: Math.Vector2[]An optional array to store the points in.
Given a distance in pixels, get a t to find p.
The distance, in pixels.
Optionaldivisions: numberOptional amount of divisions.
Given u ( 0 .. 1 ), get a t to find p. This gives you points which are equidistant.
A float between 0 and 1.
The distance, in pixels.
Optionaldivisions: numberOptional amount of divisions.
Gets a JSON representation of the line.
Calculate and cache the arc lengths.
Staticfrom
A LineCurve is a "curve" comprising exactly two points (a line segment).