DUNE: Uniform Navigational Environment  2019.02.1
DUNE::Math::LineSegParam< Type > Struct Template Reference

Detailed Description

template<typename Type>
struct DUNE::Math::LineSegParam< Type >

Computes the intersection point between two line segments.

Parameters
preference to struct object of type LinSegParam (below)
coord_xx coordinate of the intersection point
coord_yy coordinate of the intersection point
Returns
true if the lines intersect, false otherwise

Public Member Functions

 LineSegParam (Type point_a_x1, Type point_a_y1, Type point_a_x2, Type point_a_y2, Type point_b_x1, Type point_b_y1, Type point_b_x2, Type point_b_y2)
 

Public Attributes

Type line_a_x1
 
Type line_a_y1
 
Type line_a_x2
 
Type line_a_y2
 
Type line_b_x1
 
Type line_b_y1
 
Type line_b_x2
 
Type line_b_y2
 

Constructor & Destructor Documentation

template<typename Type>
DUNE::Math::LineSegParam< Type >::LineSegParam ( Type  point_a_x1,
Type  point_a_y1,
Type  point_a_x2,
Type  point_a_y2,
Type  point_b_x1,
Type  point_b_y1,
Type  point_b_x2,
Type  point_b_y2 
)
inline

Member Data Documentation

template<typename Type>
Type DUNE::Math::LineSegParam< Type >::line_a_x1
template<typename Type>
Type DUNE::Math::LineSegParam< Type >::line_a_x2
template<typename Type>
Type DUNE::Math::LineSegParam< Type >::line_a_y1
template<typename Type>
Type DUNE::Math::LineSegParam< Type >::line_a_y2
template<typename Type>
Type DUNE::Math::LineSegParam< Type >::line_b_x1
template<typename Type>
Type DUNE::Math::LineSegParam< Type >::line_b_x2
template<typename Type>
Type DUNE::Math::LineSegParam< Type >::line_b_y1
template<typename Type>
Type DUNE::Math::LineSegParam< Type >::line_b_y2
Collaboration diagram for DUNE::Math::LineSegParam< Type >:
Collaboration graph