예제 #1
0
 public static PVector GetFromRotationDegrees(PVector a, double degrees)
 {
     return(PVector.GetFromRotationRadians(a, degrees.ToRadians()));
 }
예제 #2
0
 public void Add(PVector v)
 {
     X += v.X;
     Y += v.Y;
 }
예제 #3
0
 public static double AngleBetweenRadians(PVector a, PVector b)
 {
     return(a.AngleWithRadians(b));
 }
예제 #4
0
 public static double AngleBetweenDegrees(PVector a, PVector b)
 {
     return(a.AngleWithDegrees(b));
 }
예제 #5
0
 public static double DistanceBetween(PVector a, PVector b)
 {
     return(a.DistanceTo(b));
 }
예제 #6
0
 public double AngleWithDegrees(PVector b)
 {
     return(AngleWithRadians(b).ToDegrees());
 }
예제 #7
0
 public double AngleWithRadians(PVector b)
 {
     return(Math.Atan2(b.Y - Y, b.X - X));
 }
예제 #8
0
 public PLine(double x1, double y1, double x2, double y2)
 {
     Start = new PVector(x1, y1);
     End   = new PVector(x2, y2);
 }
예제 #9
0
 public PLine(PVector s, PVector e)
 {
     Start = s;
     End   = e;
 }