All pastes #2127479 Raw Edit

Stuff

public text v1 · immutable
#2127479 ·published 2012-03-13 00:23 UTC
rendered paste body
//CONCAVE LENS 
    public Rectangle GetBoundsRect()
    {
        Rectangle rect = new Rectangle(getLocation().x-arcX/2,getLocation().y-arcX,distance,arcY);
        return rect;
    }

//CONVEX LENS

        public Rectangle GetBoundsRect()
        {
            Point p = getLocation();
            Rectangle rect = new Rectangle(p.x-width/2,getY()-height/2,width,height);
            return rect;
        }