Divide() public method

public Divide ( float n ) : AbstractVector
n float
return AbstractVector
        public static FDGVector2 operator /(float a, FDGVector2 b)
        {
            FDGVector2 temp = new FDGVector2(b.x, b.y);

            temp.Divide(a);
            return(temp);
        }
        public static FDGVector2 operator /(FDGVector2 a, float b)
        {
            FDGVector2 temp = new FDGVector2(a.x, a.y);

            temp.Divide(b);
            return(temp);
        }
Exemplo n.º 3
0
 public static FDGVector2 operator /(float a, FDGVector2 b)
 {
     FDGVector2 temp = new FDGVector2(b.x, b.y);
     temp.Divide(a);
     return temp;
 }
Exemplo n.º 4
0
 public static FDGVector2 operator /(FDGVector2 a, float b)
 {
     FDGVector2 temp = new FDGVector2(a.x, a.y);
     temp.Divide(b);
     return temp;
 }