Exemplo n.º 1
0
        /// <summary>
        /// Equality tester
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public override bool Equals(System.Object obj)
        {
            if (obj is Long3 == false)
            {
                return(false);
            }
            Long3 r = (Long3)obj;

            return(this.x == r.x && this.y == r.y && this.z == r.z);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Copy constructor
 /// </summary>
 /// <param name="other"></param>
 public Long3(Long3 other)
 {
     this.x = other.x;
     this.y = other.y;
     this.z = other.z;
 }