예제 #1
0
 public static int KineticEnergy(this Moon moon)
 {
     return(Distance.Manhattan(moon.Velocity));
 }
예제 #2
0
 public static int PotentialEnergy(this Moon moon)
 {
     return(Distance.Manhattan(moon.Position));
 }