http://www.cnblogs.com/graphics/archive/2010/06/21/1752421.html 这个博客里提到了很全的几种算法,值得借鉴。 转载于:https://www.cnblogs.com/tjuxqcui/p/5534771.html