示例#1
0
    // 补充
    public static VInt Distance(VInt3 a, VInt3 b)
    {
        long s = IntMath.SqrtLong((a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y) + (a.z - b.z) * (a.z - b.z));

        return(new VInt(s * PrecisionFactor));
    }