mirror of
https://github.com/RustyRaptor/Programs.git
synced 2026-12-03 15:45:21 -07:00
fixed scaling function by making it multiply instead of add the factor Fixes: #4
This commit is contained in:
1 parent
0eb3c93610
commit
df278e7b3b
1 file changed
+1
-1
@@ -37,7 +37,7 @@ public abstract class Circle
|
||||
**/
|
||||
public double scale(double factor)
|
||||
{
|
||||
radius = radius + factor;
|
||||
radius = radius * factor;
|
||||
return radius;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user