//求长度,结果取整 public int Magnitude() { return((int)IntMath.Sqrt(x * x + y * y)); }
//求长度,结果取整 public int Magnitude() { return(IntMath.Sqrt(Square())); }