Public Member Functions | Private Attributes
ecl::Intersection< LinearFunction > Class Template Reference

Intersection of two linear functions. More...

#include <polynomial.hpp>

List of all members.

Public Member Functions

bool fail () const
 Boolean flag identifying if the last operation failed or not.
 Intersection ()
ECL_PUBLIC CartesianPoint2d operator() (const LinearFunction &f, const LinearFunction &g) ecl_throw_decl(StandardException)
 Returns the intersection of two linear functions.
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 ( ) [inline, virtual]

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

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 Sun Oct 5 2014 23:36:08