Functions
triangle_area.hpp File Reference

Calculates the area of a triangle. More...

#include "geometry.hpp"
Include dependency graph for triangle_area.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double calc_triangle_area (const Vector2D &p1, const Vector2D &p2, const Vector2D &p3)
 Calculates the area of a triangle. More...
 

Detailed Description

Calculates the area of a triangle.

Author
Almog Yalinewich

Definition in file triangle_area.hpp.

Function Documentation

◆ calc_triangle_area()

double calc_triangle_area ( const Vector2D p1,
const Vector2D p2,
const Vector2D p3 
)

Calculates the area of a triangle.

Parameters
p1Vertex #1
p2Vertex #2
p3Vertex #3
Returns
Area of the triangle

Definition at line 4 of file triangle_area.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: