Advertisement
JamesYeoman

CartesianVector H

May 23rd, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #pragma once
  2.  
  3. template <typename T> class CartesianVector
  4. {
  5. public:
  6.  
  7.     T x;
  8.     T y;
  9.  
  10.     CartesianVector( T , T );
  11.  
  12.     CartesianVector<T> operator+(const CartesianVector<T>);
  13.     CartesianVector<T> operator-(const CartesianVector<T>);
  14.     CartesianVector<T> operator*(const CartesianVector<T>);
  15. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement