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.
24 lines
426 B
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
|
|
}
|
|
}
|
|
|