Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions Common/include/containers/CLookUpTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,29 +260,6 @@ class CLookUpTable {
void InterpolateToNearestNeighbors(const su2double val_CV1, const su2double val_CV2, const std::string& name_var,
su2double* var_val, const unsigned long i_level = 0);

/*!
* \brief Determine if a point P(val_CV1,val_CV2) is inside the triangle val_id_triangle.
* \param[in] val_CV1 - First coordinate of point P(val_CV1,val_CV2) to check.
* \param[in] val_CV2 - Second coordinate of point P(val_CV1,val_CV2) to check.
* \param[in] val_id_triangle - ID of the triangle to check.
* \returns True if the point is in the triangle, false if it is outside.
*/
bool IsInTriangle(su2double val_CV1, su2double val_CV2, unsigned long val_id_triangle, unsigned long i_level = 0);

/*!
* \brief Compute the area of a triangle given the 3 points of the triangle.
* \param[in] x1 - The coordinates of the points P1(x1,y1), P2(x2,y2) and P3(x3,y3).
* \param[in] y1 - The coordinates of the points P1(x1,y1), P2(x2,y2) and P3(x3,y3).
* \param[in] x2 - The coordinates of the points P1(x1,y1), P2(x2,y2) and P3(x3,y3).
* \param[in] y2 - The coordinates of the points P1(x1,y1), P2(x2,y2) and P3(x3,y3).
* \param[in] x3 - The coordinates of the points P1(x1,y1), P2(x2,y2) and P3(x3,y3).
* \param[in] y3 - The coordinates of the points P1(x1,y1), P2(x2,y2) and P3(x3,y3).
* \returns The absolute value of the area of the triangle.
*/
inline su2double TriArea(su2double x1, su2double y1, su2double x2, su2double y2, su2double x3, su2double y3) {
return abs((x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2)) * 0.5);
}

/*!
* \brief Compute the values of the first and second controlling variable based on normalized query coordinates
* \param[in] inclusion_levels - Pair containing lower(first) and upper(second) table inclusion level indices.
Expand Down
Loading