var p1: cc.Vec2 = cc.v2(40, 30);
var p2: cc.Vec2 = cc.v2(80, 60);
var angle = Math.atan2((p1.y - p2.y), (p2.x - p1.x)) //弧度 -0.6435011087932844, 即 2* - 0.6435011087932844
var theta = angle * (180 / Math.PI); //角度 -36.86989764584402,即360 - 36.86989764584402 = 323.13010235415598
let distance = p1.sub(p2).mag();