Type Alias: SplineCurveSegment
SplineCurveSegment:
object
Spline curve segment the is part of a spline path
Type declaration
aabb
aabb:
Types.AABB2
Axis-aligned bounding (minX, minY, maxX, maxY)
controlPoints
controlPoints:
object
Control Points that influences the spline curve segment.
For cubic splines the curve goes from P1 and P2 but it is also influenced by the previous point (P0) and the next point (P3)
controlPoints.p0
p0:
Types.Point2
controlPoints.p1
p1:
Types.Point2
controlPoints.p2
p2:
Types.Point2
controlPoints.p3
p3:
Types.Point2
length
length:
number
Length of the curve segment
lineSegments
lineSegments:
SplineLineSegment
[]
Line segments that makes the curve segment
previousCurveSegmentsLength
previousCurveSegmentsLength:
number
Total length of all previous curve segments