Rogue: Savage Rats, a retro-themed dungeon crawler
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.
 
 
rogue-savage-rats/src/mightypork/utils/math/coord/VecView.java

24 lines
426 B

package mightypork.utils.math.coord;
/**
* Read-only coordinate, operations with it will yield a new
* {@link MutableCoord} with the result.
*
* @author MightyPork
*/
public abstract class VecView extends VecMathImpl<VecView> {
@Override
public VecView result(double x, double y, double z)
{
return new FixedCoord(x, y, z);
}
@Override
public VecView view()
{
return this; // already not mutable
}
}