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/VecMutable.java

40 lines
708 B

package mightypork.utils.math.coord;
/**
* Mutable coord interface. This coord can be changed at will.
*
* @author MightyPork
*/
public interface VecMutable extends VecArith {
/**
* Set coordinates to match other coord.
*
* @param copied coord whose coordinates are used
* @return result
*/
VecMutable setTo(Vec copied);
/**
* Set 2D coordinates.<br>
* Z is unchanged.
*
* @param x x coordinate
* @param y y coordinate
* @return result
*/
VecMutable setTo(double x, double y);
/**
* Set coordinates.
*
* @param x x coordinate
* @param y y coordinate
* @param z z coordinate
* @return result
*/
VecMutable setTo(double x, double y, double z);
}