#include <PointCloudAPI.h>

Public Member Functions

Point operator* (float scale) const
 
Point operator+ (Point const &other) const
 
Point operator- (Point const &other) const
 
Point operator/ (float scale) const
 
 Point ()
 
 Point (float x, float y, float z)
 

Public Attributes

float x
 
float y
 
float z
 

Detailed Description

A generic point class for storing coordinate information.

Constructor & Destructor Documentation

◆ Point() [1/2]

ooc::Point::Point ( )
inline

Constructs a point at the coordinate system origin

◆ Point() [2/2]

ooc::Point::Point ( float  x,
float  y,
float  z 
)
inline

Constructs a point

Parameters
xx-coordinate of point
yy-coordinate of point
zz-coordinate of point

Member Function Documentation

◆ operator*()

Point ooc::Point::operator* ( float  scale) const
inline

Multiplies scalar with this point

Parameters
scaleThe scalar to multiply with this point

◆ operator+()

Point ooc::Point::operator+ ( Point const &  other) const
inline

Adds this point to parameter other

Parameters
otherThe point to add this point to

References x, y, and z.

◆ operator-()

Point ooc::Point::operator- ( Point const &  other) const
inline

Subtracts parameter point from this point

Parameters
otherThe point to subtract from this point

References x, y, and z.

◆ operator/()

Point ooc::Point::operator/ ( float  scale) const
inline

Divides scalar with this point

Parameters
scaleThe scalar to divide with this point

Member Data Documentation

◆ x

float ooc::Point::x

x component of point

Referenced by operator+(), and operator-().

◆ y

float ooc::Point::y

y component of point

Referenced by operator+(), and operator-().

◆ z

float ooc::Point::z

z component of point

Referenced by operator+(), and operator-().


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