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
466 B
38 lines
466 B
10 years ago
|
package mightypork.utils.math.rect;
|
||
|
|
||
|
|
||
|
import mightypork.utils.math.vect.Vect;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* Rect made of two {@link VectView}s
|
||
|
*
|
||
|
* @author MightyPork
|
||
|
*/
|
||
|
class RectVectAdapter extends Rect {
|
||
|
|
||
|
private final Vect origin;
|
||
|
private final Vect size;
|
||
|
|
||
|
|
||
|
public RectVectAdapter(Vect origin, Vect size) {
|
||
|
this.origin = origin;
|
||
|
this.size = size;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public Vect origin()
|
||
|
{
|
||
|
return origin;
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
public Vect size()
|
||
|
{
|
||
|
return size;
|
||
|
}
|
||
|
|
||
|
}
|