예제 #1
0
 public static float dist(PVector v1, PVector v2)
 {
     return((v1 - v2).magnitude);
 }
예제 #2
0
 public static PVector sub(PVector v1, PVector v2)
 {
     return(new PVector(v1.x - v2.x, v1.y - v2.y));
 }
예제 #3
0
 public void set(PVector v)
 {
     x = v.x;
     y = v.y;
 }
예제 #4
0
 public void sub(PVector v)
 {
     x -= v.x;
     y -= v.y;
 }
예제 #5
0
 public void add(PVector v)
 {
     x += v.x;
     y += v.y;
 }
예제 #6
0
 public static void popMatrix()
 {
     pt = vectors.Peek();
     vectors.Pop();
 }