Public Member Functions | Private Attributes | List of all members
ecl::Intersection< LinearFunction > Class Template 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) ecl_throw_decl(StandardException)
 Returns the intersection of two linear functions. More...
 
virtual ~Intersection ()
 

Private Attributes

bool last_operation_failed
 

Detailed Description

template<>
class ecl::Intersection< LinearFunction >

Intersection of two linear functions.

See also
Intersection, LinearFunction, Math::Polynomials.

Definition at line 1088 of file polynomial.hpp.

Constructor & Destructor Documentation

Definition at line 1090 of file polynomial.hpp.

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

Definition at line 1091 of file polynomial.hpp.

Member Function Documentation

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 1109 of file polynomial.hpp.

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 154 of file polynomial.cpp.

Member Data Documentation

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

Definition at line 1112 of file polynomial.hpp.


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


ecl_geometry
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:38