blip  0.1
Point< T > Class Template Reference

A cartesian point: a value with x and y coordinates. More...

#include <Point.hpp>

Public Member Functions

 Point (T x, T y)
 Construct a new point with the given coordinates. More...
 
 ~Point ()
 Destructor. More...
 
getX () const
 Get the x coordinate. More...
 
void setX (T x)
 Set the x coordinate. More...
 
getY () const
 Get the y coordinate. More...
 
void setY (T y)
 Set the y coordinate. More...
 
Pointoperator+= (const Point &other)
 Add a point to this one. More...
 
Pointoperator-= (const Point &other)
 Subtract a point from this one. More...
 

Detailed Description

template<typename T>
class blip::Point< T >

A cartesian point: a value with x and y coordinates.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ Point()

Point ( x,
y 
)
inline

Construct a new point with the given coordinates.

◆ ~Point()

~Point ( )
inline

Destructor.

Member Function Documentation

◆ getX()

T getX ( ) const
inline

Get the x coordinate.

◆ getY()

T getY ( ) const
inline

Get the y coordinate.

◆ operator+=()

Point& operator+= ( const Point< T > &  other)
inline

Add a point to this one.

◆ operator-=()

Point& operator-= ( const Point< T > &  other)
inline

Subtract a point from this one.

◆ setX()

void setX ( x)
inline

Set the x coordinate.

◆ setY()

void setY ( y)
inline

Set the y coordinate.


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