Changeset 870


Ignore:
Timestamp:
02/09/14 22:32:33 (10 years ago)
Author:
ngw8
Message:

Changed Circle.setSize() so that it actually sets the radius of the circle, rather than scaling it by (3 - 2(new / old)), which gave extremely unexpected results and seemed incorrect.
Shouldn't break any other functionality or previously saved frames.

File:
1 edited

Legend:

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

    r795 r870  
    271271        public void setSize(float size) {
    272272                double ratio = size / getRadius();
    273                 ratio = (1.0 - ratio) * 2 + 1.0;
     273               
    274274                // Extend the line along the same plane as the underlying line
    275275                _source.translate(_center.getPosition(), ratio);
Note: See TracChangeset for help on using the changeset viewer.