Ignore:
Timestamp:
09/18/18 12:00:17 (6 years ago)
Author:
bln4
Message:

Used Eclipse refactoring to encapsulate Point.X and Point.Y

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/items/Circle.java

    r1102 r1143  
    159159                double radius = getRadius();
    160160
    161                 double distance = Math.sqrt(Math.pow(Math.abs(_center.getX() - p.x), 2)
    162                                 + Math.pow(Math.abs(_center.getY() - p.y), 2));
     161                double distance = Math.sqrt(Math.pow(Math.abs(_center.getX() - p.getX()), 2)
     162                                + Math.pow(Math.abs(_center.getY() - p.getY()), 2));
    163163
    164164                return Math.abs(distance - radius) < getGravity() * 2;
Note: See TracChangeset for help on using the changeset viewer.