triangle_area.hpp
Go to the documentation of this file.
1 
6 #ifndef TRIANGLE_AREA_HPP
7 #define TRIANGLE_AREA_HPP 1
8 
9 #include "geometry.hpp"
10 
17 double calc_triangle_area(const Vector2D& p1,
18  const Vector2D& p2,
19  const Vector2D& p3);
20 
21 #endif // TRIANGLE_AREA_HPP
Geometrical calculations.
double calc_triangle_area(const Vector2D &p1, const Vector2D &p2, const Vector2D &p3)
Calculates the area of a triangle.
2D Mathematical vector
Definition: geometry.hpp:15