 				
 				break
 				
-			case let .addLine(to: t):
-				
-				guard let b = currentPoint else {
-					assert(false, "Expected current point")
-					break
-				}
-				
-				length += distanceBetween(point: t, and: b)
-				
-				currentPoint = t
+			case let .addLine(to: p1):
+				
+				guard let p0 = currentPoint else {
+					assert(false, "Expected current point")
+					break
+				}
+				
+				length += linearLength(p0: p0, p1: p1)
+				
+				currentPoint = p1
 				
 				break
 				

	/// - Parameter percent: Percentage of path, between 0.0 and 1.0 (inclusive)
	/// - Returns: Point on the path
	public func point(at percent: CGFloat) -> CGPoint? {

		return point(at: percent, with: elements)
	}
	

			let a = cubicCurvePoint(t: t0, p0: p0, c1: c1, c2: c2, p1: p1)
			let b = cubicCurvePoint(t: t1, p0: p0, c1: c1, c2: c2, p1: p1)
			
			approxDist += a.distance(to: b)
			
		}
		
