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/test/TestConstr.java

30 lines
619 B

package mightypork.test;
import mightypork.utils.math.rect.FixedRect;
import mightypork.utils.math.rect.RectView;
public class TestConstr {
public static void main(String[] args)
{
final RectView rm = new FixedRect(0, 0, 100, 100);
System.out.println(rm);
final RectView added = rm.move(10, 10);
System.out.println(added);
System.out.println(added.getOrigin());
System.out.println(added.getSize());
System.out.println(added.getOrigin().add(added.getSize()));
// VecMutable vv = new MutableCoord(0,0);
//
// System.out.println(vv);
// System.out.println(vv.add(50,50));
}
}