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.
38 lines
423 B
38 lines
423 B
10 years ago
|
package mightypork.utils.math.coord;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Read only rect
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
|
public class RectView extends Rect {
|
||
|
|
||
|
public RectView(Rect observed) {
|
||
|
super(observed.min.view(), observed.max.view());
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public boolean isWritable()
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public boolean isView()
|
||
|
{
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public Rect freeze()
|
||
|
{
|
||
|
// do nothing
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
}
|