RTFX  0.3
Real time special effects collaborative visualization and production library.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends
RTFX::Point2D Class Reference

A 2D point object. More...

#include <algebra.hpp>

Public Member Functions

 Point2D ()
 
 Point2D (double _x, double _y)
 
 Point2D (const Point2D &_other)
 
Point2Doperator= (const Point2D &_other)
 
double & operator[] (size_t _idx)
 
double operator[] (size_t _idx) const
 
double * data ()
 

Private Member Functions

template<class Archive >
void serialize (Archive &_ar, const unsigned int _version)
 

Private Attributes

double v [2]
 

Friends

class boost::serialization::access
 

Detailed Description

A 2D point object.

Constructor & Destructor Documentation

RTFX::Point2D::Point2D ( )
inline

The base constructor. Initializes data to zero.

RTFX::Point2D::Point2D ( double  _x,
double  _y 
)
inline

Constructor to create Point2D from x and y parameter values.

RTFX::Point2D::Point2D ( const Point2D _other)
inline

Copy constructor

Member Function Documentation

double* RTFX::Point2D::data ( )
inline

Get a pointer to the x,y data of the Point2D object

Point2D& RTFX::Point2D::operator= ( const Point2D _other)
inline

Equals operator, set this point equal to the specified point

double& RTFX::Point2D::operator[] ( size_t  _idx)
inline

Access the x and y values of the Point2D using array [] indices. Assumption: idx is a valid index.

double RTFX::Point2D::operator[] ( size_t  _idx) const
inline

Access the x and y values of the Point2D using array [] indices. Assumption: idx is a valid index.


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