mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Add Point#isInside().
This commit is contained in:
parent
04d2ed29c6
commit
2ebe4a18da
1 changed files with 3 additions and 4 deletions
|
@ -211,10 +211,9 @@ var Point = Base.extend({
|
|||
);
|
||||
},
|
||||
|
||||
// TODO: Need to adapt Rectangle.java first
|
||||
// isInside: function(rect) {
|
||||
// return rect.contains(this);
|
||||
// },
|
||||
isInside: function(rect) {
|
||||
return rect.contains(this);
|
||||
},
|
||||
|
||||
isClose: function(point, tolerance) {
|
||||
point = new Point(point);
|
||||
|
|
Loading…
Reference in a new issue