MeshLib C++ Docs
Loading...
Searching...
No Matches
MR::Parabola< T > Struct Template Reference

Represents quadratic function f(x) = a*x*x + b*x + c. More...

#include <MRParabola.h>

Public Member Functions

constexpr Parabola () noexcept=default
 
constexpr Parabola (T a, T b, T c)
 
template<typename U >
constexpr Parabola (const Parabola< U > &p)
 
constexpr T operator() (T x) const
 compute value of quadratic function at any x
 
constexpr T extremArg () const
 argument (x) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0
 
constexpr T extremVal () const
 value (y) where parabola reaches extremal value: minimum for a > 0, maximum for a < 0
 

Public Attributes

a = 0
 
b = 0
 
c = 0
 

Detailed Description

template<typename T>
struct MR::Parabola< T >

Represents quadratic function f(x) = a*x*x + b*x + c.


The documentation for this struct was generated from the following file: