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.
32 lines
462 B
32 lines
462 B
package mightypork.utils.math.coord;
|
|
|
|
|
|
/**
|
|
* View of another coordinate, immutable.<br>
|
|
* GetVec()
|
|
*
|
|
* @author MightyPork
|
|
*/
|
|
class VecProxy extends AbstractVecProxy {
|
|
|
|
final Vec observed;
|
|
|
|
|
|
/**
|
|
* Protected, in order to enforce the use of view() method on Vec, which
|
|
* uses caching.
|
|
*
|
|
* @param observed
|
|
*/
|
|
public VecProxy(Vec observed) {
|
|
this.observed = observed;
|
|
}
|
|
|
|
|
|
@Override
|
|
protected Vec getSource()
|
|
{
|
|
return observed;
|
|
}
|
|
|
|
}
|
|
|