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