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.
25 lines
514 B
25 lines
514 B
package mightypork.test;
|
|
|
|
import java.util.Locale;
|
|
|
|
import mightypork.utils.math.rect.RectVal;
|
|
import mightypork.utils.math.rect.RectView;
|
|
import mightypork.utils.math.vect.VectVal;
|
|
|
|
|
|
public class TestConstr {
|
|
|
|
public static void main(String[] args)
|
|
{
|
|
Locale.setDefault(Locale.ENGLISH);
|
|
|
|
final RectVal rect = RectVal.make(0, 0, 10, 10);
|
|
final VectVal point = VectVal.make(50, 50);
|
|
|
|
System.out.println(rect);
|
|
System.out.println(point);
|
|
System.out.println(rect.view().centerTo(point));
|
|
|
|
|
|
}
|
|
}
|
|
|