struct point {
ll x, y;
point operator-(const point &a) const {
return {x - a.x, y - a.y};
}
} a, b, c;
ll s(point a, point b) {
return abs(a.x * b.y - a.y * b.x) / 2;
}
叉积三角形面积
猜你喜欢
转载自blog.csdn.net/Cymbals/article/details/96442138
今日推荐
周排行