Example #1
0
        public override bool Equals(object obj)
        {
            if (obj == null)
            {
                return(false);
            }

            PSubPos o = (PSubPos)obj;

            return(o == this);
        }
Example #2
0
 public static int hash_PSubPos(PSubPos i2)
 {
     return(((i2.X * 5) ^ (i2.Y * 3)) / 4);
 }
Example #3
0
 public static PSubPos Lerp(PSubPos a, PSubPos b, int mul, int div)
 {
     return(a + ((PSubVec)(b - a) * mul / div));
 }
Example #4
0
 public static PSubPos Min(PSubPos a, PSubPos b)
 {
     return(new PSubPos(Math.Min(a.X, b.X), Math.Min(a.Y, b.Y)));
 }
Example #5
0
 public static PSubPos Min(PSubPos a, PSubPos b)
 {
     return new PSubPos(Math.Min(a.X, b.X), Math.Min(a.Y, b.Y));
 }
Example #6
0
 public static PSubPos Lerp(PSubPos a, PSubPos b, int mul, int div)
 {
     return a + ((PSubVec)(b - a) * mul / div);
 }