예제 #1
0
 public static NuGenVec2I Max(NuGenVec2I a, NuGenVec2I b)
 {
     return(new NuGenVec2I(
                Math.Max(a._x[0], b._x[0]),
                Math.Max(a._x[1], b._x[1])
                ));
 }
예제 #2
0
        public override bool Equals(object obj)
        {
            NuGenVec2I x = (NuGenVec2I)obj;

            return(
                _x[0] == x._x[0] &&
                _x[1] == x._x[1]
                );
        }
예제 #3
0
 public static int Dot(NuGenVec2I u, NuGenVec2I v)
 {
     return(u[0] * v[0] + u[1] * v[1]);
 }