mirror of
https://github.com/exyte/Macaw.git
synced 2024-09-21 09:59:10 +03:00
Path bounds fix for s cubic curve
This commit is contained in:
parent
abc9296458
commit
2b6e746e0e
@ -96,8 +96,8 @@ private func sCubicBounds(_ data: [Double], currentPoint: Point, currentBezierPo
|
||||
var p2 = currentPoint
|
||||
if let bezierPoint = currentBezierPoint {
|
||||
p2 = Point(
|
||||
x: 2.0 * currentPoint.x - bezierPoint.x,
|
||||
y: 2.0 * currentPoint.y - bezierPoint.y)
|
||||
x: currentPoint.x - bezierPoint.x,
|
||||
y: currentPoint.y - bezierPoint.y)
|
||||
}
|
||||
|
||||
let bezier3 = { (t: Double) -> Point in return BezierFunc2D(t, p0: p0, p1: p1, p2: p2, p3: p3) }
|
||||
|
Loading…
Reference in New Issue
Block a user