public MoonInfo3D Clone() { MoonInfo3D moon = new MoonInfo3D(); moon.Position = Position.Clone(); moon.Velocity = Velocity.Clone(); return(moon); }
public byte findEquality(MoonInfo3D compareMoon) { byte result = 0; if (compareMoon.Position.X == Position.X && compareMoon.Velocity.X == Velocity.X) { result += 1; } if (compareMoon.Position.Y == Position.Y && compareMoon.Velocity.Y == Velocity.Y) { result += 2; } if (compareMoon.Position.Z == Position.Z && compareMoon.Velocity.Z == Velocity.Z) { result += 4; } return(result); }