Skip to content

Commit

Permalink
Remove deprecated M_PI
Browse files Browse the repository at this point in the history
  • Loading branch information
philackm committed Jun 29, 2017
1 parent f7b93a7 commit 7433174
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Drawing/DataPointDrawingLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal class DataPointDrawingLayer: ScrollableGraphViewDrawingLayer {
}

private func createCircleDataPoint(centre: CGPoint) -> UIBezierPath {
return UIBezierPath(arcCenter: centre, radius: dataPointSize, startAngle: 0, endAngle: CGFloat(2.0 * M_PI), clockwise: true)
return UIBezierPath(arcCenter: centre, radius: dataPointSize, startAngle: 0, endAngle: CGFloat(2.0 * Double.pi), clockwise: true)
}

private func createSquareDataPoint(centre: CGPoint) -> UIBezierPath {
Expand Down
2 changes: 1 addition & 1 deletion Classes/ScrollableGraphView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1296,6 +1296,6 @@ private struct Easings {

static let easeOutElastic = { (t: Double) -> Double in
var p = 0.3;
return pow(2,-10*t) * sin((t-p/4)*(2*M_PI)/p) + 1;
return pow(2,-10*t) * sin((t-p/4)*(2*Double.pi)/p) + 1;
}
}

0 comments on commit 7433174

Please sign in to comment.