Smart Matrix
vector Class Reference

Implementation of vector class to store x and y. More...

#include <vector.hpp>

Public Member Functions

 vector (int x, int y)
 
 vector (const vector &rhs)
 
vectoroperator+= (const vector &rhs)
 
vector operator+ (const vector &rhs) const
 
vectoroperator-= (const vector &rhs)
 
vector operator- (const vector &rhs) const
 
vectoroperator*= (int n)
 
vector operator* (int n) const
 

Public Attributes

int x
 
int y
 

Detailed Description

Implementation of vector class to store x and y.

This class used by several classes in this library to store x and y or width and height.


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