Use auto length/radius for component bounds
This commit is contained in:
parent
a0c7851ffb
commit
1579ec0f73
@ -248,8 +248,8 @@ public abstract class MassObject extends InternalComponent {
|
|||||||
@Override
|
@Override
|
||||||
public final Collection<Coordinate> getComponentBounds() {
|
public final Collection<Coordinate> getComponentBounds() {
|
||||||
Collection<Coordinate> c = new ArrayList<Coordinate>();
|
Collection<Coordinate> c = new ArrayList<Coordinate>();
|
||||||
addBound(c, 0, radius);
|
addBound(c, 0, getRadius());
|
||||||
addBound(c, length, radius);
|
addBound(c, getLength(), getRadius());
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user