标签:node line inline turn ble iss 中间 sqrt ret
inline double diss(Node a,Node b){
return sqrt((double)(a.x-b.x)*(a.x-b.x)+(double)(a.y-b.y)*(a.y-b.y));
}
你会发现,如果不强制类型转换,中间有可能会爆掉。
标签:node line inline turn ble iss 中间 sqrt ret
原文地址:https://www.cnblogs.com/Neworld2002/p/9610994.html