You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
449 B
36 lines
449 B
11 years ago
|
package mightypork.utils.math.rect;
|
||
|
|
||
|
|
||
|
import mightypork.utils.math.coord.VecView;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Immutable rect accessor
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
|
public class RectProxy extends RectView {
|
||
|
|
||
|
private final Rect observed;
|
||
|
|
||
|
|
||
|
public RectProxy(Rect observed) {
|
||
|
this.observed = observed;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public VecView getOrigin()
|
||
|
{
|
||
|
return observed.getOrigin();
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public VecView getSize()
|
||
|
{
|
||
|
return observed.getSize();
|
||
|
}
|
||
|
|
||
|
}
|