Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
Segment2D Class Reference

#include <geometry_primitives.h>

Public Member Functions

const Point2Dbeg () const
 
bool contains (const Point2D &p) const
 
bool contains_intersection (const Point2D &p) const
 
const Point2Dend () 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
 

Detailed Description

Definition at line 36 of file geometry_primitives.h.

Constructor & Destructor Documentation

Segment2D::Segment2D ( const Point2D begin,
const Point2D end 
)
inline

Definition at line 45 of file geometry_primitives.h.

Member Function Documentation

const Point2D& Segment2D::beg ( ) const
inline

Definition at line 54 of file geometry_primitives.h.

bool Segment2D::contains ( const Point2D p) const
inline

Definition at line 59 of file geometry_primitives.h.

bool Segment2D::contains_intersection ( const Point2D p) const
inline

Definition at line 70 of file geometry_primitives.h.

const Point2D& Segment2D::end ( ) const
inline

Definition at line 55 of file geometry_primitives.h.

static Segment2D Segment2D::invalid ( )
inlinestatic

Definition at line 39 of file geometry_primitives.h.

bool Segment2D::is_horiz ( ) const
inline

Definition at line 50 of file geometry_primitives.h.

bool Segment2D::is_point ( ) const
inline

Definition at line 52 of file geometry_primitives.h.

bool Segment2D::is_vert ( ) const
inline

Definition at line 51 of file geometry_primitives.h.

double Segment2D::length_sq ( ) const
inline

Definition at line 74 of file geometry_primitives.h.

Segment2D::operator bool ( ) const
inlineexplicit

Definition at line 57 of file geometry_primitives.h.

bool Segment2D::x_projection_contains ( const Point2D p) const
inlineprivate

Definition at line 80 of file geometry_primitives.h.

bool Segment2D::y_projection_contains ( const Point2D p) const
inlineprivate

Definition at line 84 of file geometry_primitives.h.

Member Data Documentation

Point2D Segment2D::_beg
private

Definition at line 90 of file geometry_primitives.h.

Point2D Segment2D::_end
private

Definition at line 90 of file geometry_primitives.h.

bool Segment2D::_is_horiz
private

Definition at line 91 of file geometry_primitives.h.

bool Segment2D::_is_vert
private

Definition at line 91 of file geometry_primitives.h.

bool Segment2D::is_valid = true
private

Definition at line 89 of file geometry_primitives.h.


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


slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:26