Compare commits

..

1 Commits

Author SHA1 Message Date
Ricky Cai 524aec2a04 Fixed Issue 28 (#29)
Changed Int to Double in quadCurvedPathWithPoints and quadClosedCurvedPathWithPoints.
2019-12-28 09:00:48 +01:00
+2 -2
View File
@@ -104,7 +104,7 @@ extension CGPoint {
}
}
extension Path {
static func quadCurvedPathWithPoints(points:[Int], step:CGPoint) -> Path {
static func quadCurvedPathWithPoints(points:[Double], step:CGPoint) -> Path {
var path = Path()
if (points.count < 2){
return path
@@ -123,7 +123,7 @@ extension Path {
return path
}
static func quadClosedCurvedPathWithPoints(points:[Int], step:CGPoint) -> Path {
static func quadClosedCurvedPathWithPoints(points:[Double], step:CGPoint) -> Path {
var path = Path()
if (points.count < 2){
return path