Public Member Functions | Public Attributes | List of all members
ooc::Point Class Reference

#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

ooc::Point::Point ( )
inline

Constructs a point at the coordinate system origin

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

Contructs a point

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

Member Function Documentation

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

Multiplies scalar with this point

Parameters
scaleThe scalar to multiply with this point
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.

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.

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

Divides scalar with this point

Parameters
scaleThe scalar to divide with this point

Member Data Documentation

float ooc::Point::x

x component of point

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

float ooc::Point::y

y component of point

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

float ooc::Point::z

z component of point

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


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