Skip to content

Commit

Permalink
Updates to Swift 5.0
Browse files Browse the repository at this point in the history
Removes `Equatable` impl.
  • Loading branch information
kelvinlauKL authored Mar 9, 2019
1 parent 04b2d30 commit 339cc14
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Points Lines Planes/Points Lines Planes/2D/Point2D.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ struct Point2D: Equatable {
var x: Double
var y: Double

static func ==(lhs: Point2D, rhs: Point2D) -> Bool {
return lhs.x == rhs.x && lhs.y == rhs.y
}

// returns true if point is on or right of line
func isRight(of line: Line2D) -> Bool {
switch line.slope {
Expand Down

0 comments on commit 339cc14

Please sign in to comment.