示例#1
0
    public static FixVector2D VectorSubtract(FixVector2D F1, FixVector2D F2)
    {
        FixVector2D result;

        result.X = F1.X - F2.X;
        result.Y = F1.Y - F2.Y;
        return(result);
    }
示例#2
0
    public static FixVector2D VectorDivide(FixVector2D F1, int Divisor)
    {
        FixVector2D result;

        result.X = F1.X / (Fix64)Divisor;
        result.Y = F1.Y / (Fix64)Divisor;
        return(result);
    }
示例#3
0
    public static FixVector2D VectorAdd(FixVector2D F1, FixVector2D F2)
    {
        FixVector2D result;

        result.X = F1.X + F2.X;
        result.Y = F1.Y + F2.Y;
        return(result);
    }