#include <vifa_imp_line.h>
Inheritance diagram for vifa_imp_line< Type >:

Definition at line 22 of file vifa_imp_line.h.
Public Member Functions | |
| vifa_imp_line (void) | |
| Default constructor - does not initialize. | |
| vifa_imp_line (vifa_imp_line const &l) | |
| vifa_imp_line (vgl_point_2d< Type > const &p1, vgl_point_2d< Type > const &p2) | |
| Line segment constructor. | |
| vifa_imp_line (vgl_vector_2d< Type > d, vgl_point_2d< Type > m) | |
| Direction/midpoint constructor. | |
| vifa_imp_line (Type a, Type b, Type c) | |
| Implicit coefficient constructor. | |
| bool | near_zero (double x) const |
| Test if a value is near 0.0. | |
| double | get_dir_x (void) |
| Compute unit projection along X-axis. | |
| double | get_dir_y (void) |
| Compute unit projection along Y-axis. | |
| double | length (void) |
| Compute length of line segment. | |
| void | set_points (vgl_point_2d< Type > const &p1, vgl_point_2d< Type > const &p2) |
| Assignment. | |
| void | project_2d_pt (const Type &p, const Type &q, Type &x, Type &y) const |
| Project a 2D point onto the line. | |
| vgl_point_2d< Type > | project_2d_pt (const vgl_point_2d< Type > &t) const |
| double | find_t (const vgl_point_2d< Type > &p) |
| Find parametric t-value for a given point relative to line segment. | |
| vgl_point_2d< Type > | find_at_t (double t) |
| Find point on line (defined by line segment) for a parametric t-value. | |
| void | ref () |
| void | unref () |
| int | get_references () const |
| bool | is_referenced () const |
| vgl_point_2d< Type > | point1 () const |
| vgl_point_2d< Type > | point2 () const |
| bool | operator== (vgl_line_segment_2d< Type > const &l) const |
| bool | operator!= (vgl_line_segment_2d< Type >const &other) const |
| Type | a () const |
| Type | b () const |
| Type | c () const |
| vgl_vector_2d< double > | direction () const |
| vgl_vector_2d< double > | normal () const |
| double | slope_radians () const |
| double | slope_degrees () const |
| void | set (vgl_point_2d< Type > const &p1, vgl_point_2d< Type > const &p2) |
| double | vgl_distance (vgl_line_segment_2d< T > const &l, vgl_point_2d< T > const &p) |
| vcl_ostream & | operator<< (vcl_ostream &s, const vgl_line_segment_2d< Type > &p) |
| vcl_istream & | operator>> (vcl_istream &is, vgl_line_segment_2d< Type > &p) |
| bool | vgl_lineseg_test_line (vgl_line_2d< T > const &l1, vgl_line_segment_2d< T > const &l2) |
| bool | vgl_lineseg_test_lineseg (vgl_line_segment_2d< T > const &l1, vgl_line_segment_2d< T > const &l2) |
Protected Attributes | |
| double | dx_ |
| X-axis span of line segment. | |
| double | dy_ |
| Y-axis span of line segment. | |
|
||||||||||
|
Default constructor - does not initialize.
Definition at line 33 of file vifa_imp_line.h. |
|
||||||||||
|
Definition at line 36 of file vifa_imp_line.h. |
|
||||||||||||||||
|
Line segment constructor.
Definition at line 12 of file vifa_imp_line.txx. |
|
||||||||||||||||
|
Direction/midpoint constructor.
Definition at line 21 of file vifa_imp_line.txx. |
|
||||||||||||||||||||
|
Implicit coefficient constructor.
Definition at line 33 of file vifa_imp_line.txx. |
|
||||||||||
|
Find point on line (defined by line segment) for a parametric t-value.
Definition at line 161 of file vifa_imp_line.txx. |
|
||||||||||
|
Find parametric t-value for a given point relative to line segment.
Definition at line 141 of file vifa_imp_line.txx. |
|
||||||||||
|
Compute unit projection along X-axis.
Definition at line 52 of file vifa_imp_line.txx. |
|
||||||||||
|
Compute unit projection along Y-axis.
Definition at line 73 of file vifa_imp_line.txx. |
|
||||||||||
|
Compute length of line segment.
Definition at line 64 of file vifa_imp_line.txx. |
|
||||||||||
|
Test if a value is near 0.0.
Definition at line 51 of file vifa_imp_line.h. |
|
||||||||||
|
Definition at line 126 of file vifa_imp_line.txx. |
|
||||||||||||||||||||||||
|
Project a 2D point onto the line.
Definition at line 97 of file vifa_imp_line.txx. |
|
||||||||||||||||
|
Assignment.
Definition at line 84 of file vifa_imp_line.txx. |
|
|||||
|
X-axis span of line segment.
Definition at line 26 of file vifa_imp_line.h. |
|
|||||
|
Y-axis span of line segment.
Definition at line 29 of file vifa_imp_line.h. |
1.4.4