예제 #1
0
 public angle GetAzimuth(vector b)
 {
     return(new angle(Math.Atan2(b.y - this.y, b.x - this.x)));
 }
예제 #2
0
 public GravityObject(vector pos, vector vel, object UID)
 {
     UniqueID = UID;
     Position = pos;
     Velocity = vel;
 }
예제 #3
0
 public double Distance(vector b)
 {
     return(Math.Sqrt(Math.Pow(this.x - b.x, 2) + Math.Pow(this.y - b.y, 2)));
 }