opynsim
Unofficial C++ Documentation
Loading...
Searching...
No Matches
Namespaces | Functions
triangle_functions.h File Reference
#include <liboscar/maths/geometric_functions.h>
#include <liboscar/maths/triangle.h>
#include <liboscar/maths/vector.h>
#include <concepts>
#include <type_traits>
Include dependency graph for triangle_functions.h:

Go to the source code of this file.

Namespaces

namespace  osc
 

Functions

template<typename T >
requires std::is_arithmetic_v<T>
constexpr bool osc::can_form_triangle (const Vector< T, 3 > &a, const Vector< T, 3 > &b, const Vector< T, 3 > &c)
 
template<std::floating_point T>
Vector< T, 3 > osc::triangle_normal (const Vector< T, 3 > &a, const Vector< T, 3 > &b, const Vector< T, 3 > &c)
 
Vector< float, 3 > osc::triangle_normal (const Triangle &t)