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.
35 lines
436 B
35 lines
436 B
package mightypork.utils.math.rect;
|
|
|
|
|
|
import mightypork.utils.math.vect.VectVal;
|
|
|
|
|
|
/**
|
|
* Immutable rect accessor
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
public class RectProxy extends RectView {
|
|
|
|
private final Rect observed;
|
|
|
|
|
|
public RectProxy(Rect observed) {
|
|
this.observed = observed;
|
|
}
|
|
|
|
|
|
@Override
|
|
public VectVal origin()
|
|
{
|
|
return observed.origin();
|
|
}
|
|
|
|
|
|
@Override
|
|
public VectVal size()
|
|
{
|
|
return observed.size();
|
|
}
|
|
|
|
}
|
|
|