Point Cloud Library (PCL)  1.14.0-dev
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes
pcl::PointXY32f Class Reference

2D point with float x- and y-coordinates. More...

#include <pcl/ml/point_xy_32f.h>

Public Member Functions

 PointXY32f ()=default
 Constructor. More...
 
virtual ~PointXY32f ()=default
 Destructor. More...
 
void serialize (std::ostream &stream) const
 Serializes the point to the specified stream. More...
 
void deserialize (std::istream &stream)
 Deserializes the point from the specified stream. More...
 

Static Public Member Functions

static PointXY32f randomPoint (const int min_x, const int max_x, const int min_y, const int max_y)
 Creates a random point within the specified window. More...
 

Public Attributes

float x {0.0f}
 The x-coordinate of the point. More...
 
float y {0.0f}
 The y-coordinate of the point. More...
 

Detailed Description

2D point with float x- and y-coordinates.

Definition at line 47 of file point_xy_32f.h.

Constructor & Destructor Documentation

◆ PointXY32f()

pcl::PointXY32f::PointXY32f ( )
inlinedefault

Constructor.

◆ ~PointXY32f()

virtual pcl::PointXY32f::~PointXY32f ( )
inlinevirtualdefault

Destructor.

Member Function Documentation

◆ deserialize()

void pcl::PointXY32f::deserialize ( std::istream &  stream)
inline

Deserializes the point from the specified stream.

Parameters
[in]streamthe source for the deserialization

Definition at line 70 of file point_xy_32f.h.

◆ randomPoint()

static PointXY32f pcl::PointXY32f::randomPoint ( const int  min_x,
const int  max_x,
const int  min_y,
const int  max_y 
)
static

Creates a random point within the specified window.

Parameters
[in]min_xthe minimum value for the x-coordinate of the point
[in]max_xthe maximum value for the x-coordinate of the point
[in]min_ythe minimum value for the y-coordinate of the point
[in]max_ythe maximum value for the y-coordinate of the point

Referenced by pcl::ScaledMultiChannel2DComparisonFeatureHandler< DATA_TYPE, NUM_OF_CHANNELS, SCALE_CHANNEL, INVERT_SCALE >::createRandomFeatures().

◆ serialize()

void pcl::PointXY32f::serialize ( std::ostream &  stream) const
inline

Serializes the point to the specified stream.

Parameters
[out]streamthe destination for the serialization

Definition at line 59 of file point_xy_32f.h.

Member Data Documentation

◆ x

float pcl::PointXY32f::x {0.0f}

The x-coordinate of the point.

Definition at line 88 of file point_xy_32f.h.

◆ y

float pcl::PointXY32f::y {0.0f}

The y-coordinate of the point.

Definition at line 90 of file point_xy_32f.h.


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