Permalink
Browse files

Add point in frame function to utils

  • Loading branch information...
Koen Bok
Koen Bok committed May 16, 2013
1 parent 6fd264c commit 6bfb912dea885437c20a7d03ae463a27320c1632
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/utils.coffee
@@ -186,8 +186,10 @@ exports.pointAbs = (point) ->
x: Math.abs point.x
y: Math.abs point.y
exports.pointInRect = (point, rect) ->
alert "Not implemented, you lazy man"
exports.pointInFrame = (point, frame) ->
return false if point.x < frame.minX or point.x > frame.maxX
return false if point.y < frame.minY or point.y > frame.maxY
true
exports.convertPoint = (point, view1, view2) ->

0 comments on commit 6bfb912

Please sign in to comment.