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.
33 lines
610 B
33 lines
610 B
package mightypork.test;
|
|
|
|
|
|
import mightypork.utils.math.constraints.vect.Vect;
|
|
import mightypork.utils.math.constraints.vect.VectConst;
|
|
import mightypork.utils.math.constraints.vect.mutable.VectVar;
|
|
|
|
|
|
public class TestVec {
|
|
|
|
public static void main(String[] args)
|
|
{
|
|
final VectVar a = Vect.makeVar(-100, 12, 6);
|
|
|
|
final VectConst b = a.freeze();
|
|
|
|
a.setTo(400, 400, 300);
|
|
|
|
System.out.println(a);
|
|
System.out.println(b);
|
|
|
|
final Vect c = a.abs().neg();
|
|
|
|
System.out.println(c);
|
|
|
|
System.out.println("20,1");
|
|
a.setTo(20, 1);
|
|
|
|
System.out.println(a);
|
|
System.out.println(c);
|
|
|
|
}
|
|
}
|
|
|