#include <geometry_primitives.h>
Public Member Functions | |
| const Point2D & | beg () const | 
| bool | contains (const Point2D &p) const | 
| bool | contains_intersection (const Point2D &p) const | 
| const Point2D & | end () const | 
| bool | is_horiz () const | 
| bool | is_point () const | 
| bool | is_vert () const | 
| double | length_sq () const | 
| operator bool () const | |
| Segment2D (const Point2D &begin, const Point2D &end) | |
Static Public Member Functions | |
| static Segment2D | invalid () | 
Private Member Functions | |
| bool | x_projection_contains (const Point2D &p) const | 
| bool | y_projection_contains (const Point2D &p) const | 
Private Attributes | |
| Point2D | _beg | 
| Point2D | _end | 
| bool | _is_horiz | 
| bool | _is_vert | 
| bool | is_valid = true | 
Definition at line 36 of file geometry_primitives.h.
Definition at line 45 of file geometry_primitives.h.
      
  | 
  inline | 
Definition at line 54 of file geometry_primitives.h.
      
  | 
  inline | 
Definition at line 59 of file geometry_primitives.h.
      
  | 
  inline | 
Definition at line 70 of file geometry_primitives.h.
      
  | 
  inline | 
Definition at line 55 of file geometry_primitives.h.
      
  | 
  inlinestatic | 
Definition at line 39 of file geometry_primitives.h.
      
  | 
  inline | 
Definition at line 50 of file geometry_primitives.h.
      
  | 
  inline | 
Definition at line 52 of file geometry_primitives.h.
      
  | 
  inline | 
Definition at line 51 of file geometry_primitives.h.
      
  | 
  inline | 
Definition at line 74 of file geometry_primitives.h.
      
  | 
  inlineexplicit | 
Definition at line 57 of file geometry_primitives.h.
      
  | 
  inlineprivate | 
Definition at line 80 of file geometry_primitives.h.
      
  | 
  inlineprivate | 
Definition at line 84 of file geometry_primitives.h.
      
  | 
  private | 
Definition at line 90 of file geometry_primitives.h.
      
  | 
  private | 
Definition at line 90 of file geometry_primitives.h.
      
  | 
  private | 
Definition at line 91 of file geometry_primitives.h.
      
  | 
  private | 
Definition at line 91 of file geometry_primitives.h.
      
  | 
  private | 
Definition at line 89 of file geometry_primitives.h.