header_utils
Loading...
Searching...
No Matches
Normals

Functions useful for work with normal vectors. More...

Functions

template<typename T, size_t N>
static constexpr bool ghassanpl::geometry::normals::are_similar (glm::vec< N, T > const &a, glm::vec< N, T > const &b)
 Whether these vectors are (mostly) parallel and point in the same direction.
template<typename T, size_t N>
static constexpr bool ghassanpl::geometry::normals::are_parallel (glm::vec< N, T > const &a, glm::vec< N, T > const &b)
 Whether these vectors are (mostly) parallel.
template<typename T, size_t N>
static constexpr bool ghassanpl::geometry::normals::are_perpendicular (glm::vec< N, T > const &a, glm::vec< N, T > const &b)
 Whether these vectors are (mostly) perpendicular.

Detailed Description

Functions useful for work with normal vectors.

Function Documentation

◆ are_parallel()

template<typename T, size_t N>
constexpr bool ghassanpl::geometry::normals::are_parallel ( glm::vec< N, T > const & a,
glm::vec< N, T > const & b )
staticconstexpr

Whether these vectors are (mostly) parallel.

Definition at line 162 of file geometry_common.h.

◆ are_perpendicular()

template<typename T, size_t N>
constexpr bool ghassanpl::geometry::normals::are_perpendicular ( glm::vec< N, T > const & a,
glm::vec< N, T > const & b )
staticconstexpr

Whether these vectors are (mostly) perpendicular.

Definition at line 169 of file geometry_common.h.

◆ are_similar()

template<typename T, size_t N>
constexpr bool ghassanpl::geometry::normals::are_similar ( glm::vec< N, T > const & a,
glm::vec< N, T > const & b )
staticconstexpr

Whether these vectors are (mostly) parallel and point in the same direction.

Definition at line 155 of file geometry_common.h.