예제 #1
0
 public static bool Equals(Int32Size3D size1, Int32Size3D size2)
 {
     if (size1.X == size2.X && size1.Y == size2.Y)
     {
         return(size1.Z == size2.Z);
     }
     return(false);
 }
예제 #2
0
 public override bool Equals(object o)
 {
     if (o == null || !(o is Int32Size3D))
     {
         return(false);
     }
     return(Int32Size3D.Equals(this, (Int32Size3D)o));
 }
예제 #3
0
 public bool Equals(Int32Size3D value)
 {
     return(Int32Size3D.Equals(this, value));
 }
예제 #4
0
        private Int32Size3D GetOffset(Point3D position)
        {
            var ret = new Int32Size3D((int)(position.X / UnitSize), (int)(position.Y / UnitSize), (int)(position.Z / UnitSize));

            return(ret);
        }