library

This documentation is automatically generated by online-judge-tools/verification-helper

View the Project on GitHub maspypy/library

:heavy_check_mark: geo/triangle_area.hpp

Required by

Verified with

Code

template <typename REAL, typename T>
REAL triangle_area(Point<T> A, Point<T> B, Point<T> C) {
  return abs((B - A).det(C - A)) * 0.5;
}
#line 1 "geo/triangle_area.hpp"
template <typename REAL, typename T>
REAL triangle_area(Point<T> A, Point<T> B, Point<T> C) {
  return abs((B - A).det(C - A)) * 0.5;
}
Back to top page