linear_segment.hpp
Go to the documentation of this file.
1 
4 /*****************************************************************************
5 ** Ifdefs
6 *****************************************************************************/
7 
8 #ifndef ecl_geometry_GEOMETRY_LINEAR_SEGMENT_HPP_
9 #define ecl_geometry_GEOMETRY_LINEAR_SEGMENT_HPP_
10 
11 /*****************************************************************************
12 ** Includes
13 *****************************************************************************/
14 
16 
17 /*****************************************************************************
18 ** Namespaces
19 *****************************************************************************/
20 
21 namespace ecl {
22 
23 /*****************************************************************************
24 ** Interfaces
25 *****************************************************************************/
26 
28 public:
29  LinearSegment(const double& x_1,
30  const double& y_1,
31  const double& x_2,
32  const double& y_2);
33 
47  double squaredDistanceFromPoint(const double& x, const double& y) const;
48 
50 
51 private:
52  double x_1, y_1;
53  double x_2, y_2;
54 };
55 
56 /*****************************************************************************
57 ** Trailers
58 *****************************************************************************/
59 
60 } // namespace ecl
61 
62 #endif /* ecl_geometry_GEOMETRY_LINEAR_SEGMENT_HPP_ */
ecl::Parameter< double > A
ecl::Parameter< double > C
Embedded control libraries.
double squaredDistanceFromPoint(const double &x, const double &y) const
Distance of a point from the segment.
LinearSegment(const double &x_1, const double &y_1, const double &x_2, const double &y_2)
ecl::Parameter< double > B


ecl_geometry
Author(s): Daniel Stonier
autogenerated on Mon Feb 28 2022 22:18:49