Public Member Functions | Private Attributes | List of all members
ecl::Intersection< LinearFunction > Class Reference

Intersection of two linear functions. More...

#include <polynomial.hpp>

Public Member Functions

bool fail () const
 Boolean flag identifying if the last operation failed or not. More...
 
 Intersection ()
 
ECL_PUBLIC CartesianPoint2d operator() (const LinearFunction &f, const LinearFunction &g)
 Returns the intersection of two linear functions. More...
 
virtual ~Intersection ()
 

Private Attributes

bool last_operation_failed
 

Detailed Description

Intersection of two linear functions.

See also
Intersection, LinearFunction, Math::Polynomials.

Definition at line 1094 of file polynomial.hpp.

Constructor & Destructor Documentation

◆ Intersection()

Definition at line 1098 of file polynomial.hpp.

◆ ~Intersection()

virtual ecl::Intersection< LinearFunction >::~Intersection ( )
inlinevirtual

Definition at line 1099 of file polynomial.hpp.

Member Function Documentation

◆ fail()

bool ecl::Intersection< LinearFunction >::fail ( ) const
inline

Boolean flag identifying if the last operation failed or not.

Use this if you have disabled exceptions or don't wish to catch the exception thrown when linear functions are collinear.

Definition at line 1117 of file polynomial.hpp.

◆ operator()()

CartesianPoint2d ecl::Intersection< LinearFunction >::operator() ( const LinearFunction f,
const LinearFunction g 
)

Returns the intersection of two linear functions.

Parameters
f: linear function.
g: linear function.
Returns
CartesionPoint2d : the intersection point.
Exceptions
StandardException : throws if functions are collinear.

Definition at line 158 of file polynomial.cpp.

Member Data Documentation

◆ last_operation_failed

bool ecl::Intersection< LinearFunction >::last_operation_failed
private

Definition at line 1120 of file polynomial.hpp.


The documentation for this class was generated from the following files:


ecl_geometry
Author(s): Daniel Stonier
autogenerated on Sun Aug 2 2020 03:12:16