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. | |

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 |

class ecl::Intersection< LinearFunction >

Intersection of two linear functions.

**See also:**- Intersection, LinearFunction, Math::Polynomials.

Definition at line 1077 of file polynomial.hpp.

ecl::Intersection< LinearFunction >::Intersection | ( | ) | ` [inline]` |

Definition at line 1079 of file polynomial.hpp.

virtual ecl::Intersection< LinearFunction >::~Intersection | ( | ) | ` [inline, virtual]` |

Definition at line 1080 of file polynomial.hpp.

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 1098 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.

bool ecl::Intersection< LinearFunction >::last_operation_failed` [private]` |

Definition at line 1101 of file polynomial.hpp.

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

ecl_geometry

Author(s): Daniel Stonier (d.stonier@gmail.com)

autogenerated on Thu Jan 2 2014 11:13:11

Author(s): Daniel Stonier (d.stonier@gmail.com)

autogenerated on Thu Jan 2 2014 11:13:11