P1(x1,y1,z3)
P2(x2,y2,z3)
甘我用euclidean distance計佢地個distance:
sqrt{ (x1-x2)^2 + (y1-y2)^2 + (z1-z2)^2 }
甘既然二次之後再sqaure root係想令到d負數無左,
甘我想問點解唔係甘樣分開sqrt:
sqrt{ (x1-x2)^2 } + sqrt{ (y1-y2)^2 } + sqrt{ (z1-z2)^2 }
而係一次過先sqrt呀?
唔該晒
更新1:
條式正確黎講係一次過sqrt 但係我就想知點解唔係分開sqrt