Public Member Functions | Public Attributes | List of all members
DiscretePoint2D Struct Reference

#include <geometry_discrete_primitives.h>

Public Member Functions

constexpr DiscretePoint2D (int x_coord=0, int y_coord=0)
 
double dist_sq (const DiscretePoint2D &pt) const
 
bool operator!= (const DiscretePoint2D &p) const
 
DiscretePoint2D operator+ (const DiscretePoint2D &p) const
 
DiscretePoint2Doperator+= (const DiscretePoint2D &p)
 
DiscretePoint2D operator- (const DiscretePoint2D &p) const
 
DiscretePoint2D operator- () const
 
bool operator== (const DiscretePoint2D &p) const
 

Public Attributes

int x
 
int y
 

Detailed Description

Definition at line 10 of file geometry_discrete_primitives.h.

Constructor & Destructor Documentation

constexpr DiscretePoint2D::DiscretePoint2D ( int  x_coord = 0,
int  y_coord = 0 
)
inline

Definition at line 14 of file geometry_discrete_primitives.h.

Member Function Documentation

double DiscretePoint2D::dist_sq ( const DiscretePoint2D pt) const
inline

Definition at line 43 of file geometry_discrete_primitives.h.

bool DiscretePoint2D::operator!= ( const DiscretePoint2D p) const
inline

Definition at line 35 of file geometry_discrete_primitives.h.

DiscretePoint2D DiscretePoint2D::operator+ ( const DiscretePoint2D p) const
inline

Definition at line 23 of file geometry_discrete_primitives.h.

DiscretePoint2D& DiscretePoint2D::operator+= ( const DiscretePoint2D p)
inline

Definition at line 17 of file geometry_discrete_primitives.h.

DiscretePoint2D DiscretePoint2D::operator- ( const DiscretePoint2D p) const
inline

Definition at line 27 of file geometry_discrete_primitives.h.

DiscretePoint2D DiscretePoint2D::operator- ( ) const
inline

Definition at line 39 of file geometry_discrete_primitives.h.

bool DiscretePoint2D::operator== ( const DiscretePoint2D p) const
inline

Definition at line 31 of file geometry_discrete_primitives.h.

Member Data Documentation

int DiscretePoint2D::x

Definition at line 12 of file geometry_discrete_primitives.h.

int DiscretePoint2D::y

Definition at line 12 of file geometry_discrete_primitives.h.


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


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