Exemplo n.º 1
0
Arquivo: Moon.cs Projeto: quinnc/AoC
        public static ThreeD operator +(ThreeD lhs, ThreeD rhs)
        {
            ThreeD result = new ThreeD();

            result.x = lhs.x + rhs.x;
            result.y = lhs.y + rhs.y;
            result.z = lhs.z + rhs.z;

            return(result);
        }
Exemplo n.º 2
0
Arquivo: Moon.cs Projeto: quinnc/AoC
 private void Init(int _x, int _y, int _z)
 {
     location = new ThreeD()
     {
         x = _x, y = _y, z = _z
     };
     speed = new ThreeD()
     {
         x = 0, y = 0, z = 0
     };
 }
Exemplo n.º 3
0
Arquivo: Moon.cs Projeto: quinnc/AoC
 public void Add(ThreeD rhs)
 {
     x += rhs.x;
     y += rhs.y;
     z += rhs.z;
 }