示例#1
0
        public static GmfVec operator /(GmfVec left, float div)
        {
            GmfVec v = new GmfVec();

            v.X = left.X / div;
            v.Y = left.Y / div;
            return(v);
        }
示例#2
0
        public static GmfVec operator *(GmfVec left, float mult)
        {
            GmfVec v = new GmfVec();

            v.X = left.X * mult;
            v.Y = left.Y * mult;
            return(v);
        }
示例#3
0
        public static GmfVec operator +(GmfVec left, GmfVec right)
        {
            GmfVec v = new GmfVec();

            v.X = left.X + right.X;
            v.Y = left.Y + right.Y;
            return(v);
        }
示例#4
0
        public static GmfVec operator *(float mult, GmfVec right)
        {
            GmfVec v = new GmfVec();

            v.X = right.X * mult;
            v.Y = right.Y * mult;
            return(v);
        }
示例#5
0
 public GmfVec(GmfVec v)
 {
     X = v.X;
     Y = v.Y;
 }