Closed #3048: cc.rect can receiving different type parameters now
Closed #3048: refactoring codes for performance
Merge pull request #1211 from dingpinglv/Iss3048_RectClone

Closed #3048: cc.rect can receiving different type parameters now