Skip to content

Commit

Permalink
Fix #449: Typo in Rect.center()
Browse files Browse the repository at this point in the history
  • Loading branch information
ystrot committed Jul 13, 2018
1 parent 3883524 commit 34e381f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/model/geom2d/Rect.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ open class Rect: Locus {
}

open func center() -> Point {
return Point(x: x + w / 2, y: y + w / 2)
return Point(x: x + w / 2, y: y + h / 2)
}

open func contains(locus: Locus) -> Bool {
Expand Down

0 comments on commit 34e381f

Please sign in to comment.