ProjGeom 1.0.11
Loading...
Searching...
No Matches
Namespaces | Functions
ck_plane.hpp File Reference

Cayley-Klein plane functions: perpendicularity, altitude, orthocenter, reflection. More...

#include <array>
#include "pg_plane.hpp"
Include dependency graph for ck_plane.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  fun
 

Functions

template<class Line , class Point = typename Line::Dual>
constexpr auto fun::is_perpendicular (const Line &l_1, const Line &l_2) -> bool
 Check if two lines are perpendicular (Cayley-Klein).
 
template<class Point , class Line >
constexpr auto fun::altitude (const Point &pt_p, const Line &ln_m) -> Line
 Compute the altitude from a point to a line (Cayley-Klein).
 
template<class Point , class Line = typename Point::Dual>
constexpr auto fun::orthocenter (const std::array< Point, 3 > &triangle) -> Point
 Compute the orthocenter of a triangle (Cayley-Klein).
 
template<class Point , class Line >
constexpr auto fun::tri_altitude (const std::array< Point, 3 > &triangle) -> std::array< Line, 3 >
 Compute all three altitudes of a triangle (Cayley-Klein).
 
template<typename Value , class Point , class Line = typename Point::Dual>
constexpr auto fun::reflect (const Line &mirror, const Point &pt_p) -> Point
 Reflect a point across a line (Cayley-Klein).
 

Detailed Description

Cayley-Klein plane functions: perpendicularity, altitude, orthocenter, reflection.