#include <point2d.h>

Public Member Functions

 point2d ()
 
 point2d (const float x, const float y)
 
 point2d (const point2d &val)
 
point2doperator= (const point2d &val)
 
float x () const
 
float y () const
 
size_t size_in_bytes () const
 

Friends

template<class MetricType , int Version>
struct io::generic_layout
 

Detailed Description

Point in 2D space

Memory:

  • x 4 bytes (float32)
  • y 4 bytes (float32)
  • Total 8 bytes

Constructor & Destructor Documentation

point2d ( )
inline

Constructor

point2d ( const float  x,
const float  y 
)
inline

Constructor

Parameters
xx-coordinate
yy-coordinate
point2d ( const point2d val)
inline

Copy constructor

Parameters
valtype that defines m_x and m_y

Member Function Documentation

point2d& operator= ( const point2d val)
inline

Assign type val to point2d

Parameters
valtype that defines m_x and m_y
Returns
point2d
size_t size_in_bytes ( ) const
inline

Get size of data structure in bytes

Returns
size of data structure in bytes
float x ( ) const
inline

Get x-coordinate

Returns
x-coordinate
float y ( ) const
inline

Get y-coordinate

Returns
y-coordinate

Friends And Related Function Documentation

friend struct io::generic_layout
friend

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