#include <motion.h>
Public Member Functions | |
| MotionVector (T a, T b) | |
| Constructor. | |
| MotionVector () | |
| Default construct - sets components to 0. | |
| MotionVector (T a) | |
| Constructor. | |
| MotionVector< T > | operator+ (const MotionVector< T > &argument) const |
| Addition. | |
| MotionVector< T > | operator- (const MotionVector< T > &argument) const |
| Subtraction. | |
| MotionVector< T > | operator * (const float argument) const |
| Scalar multiplication. | |
| MotionVector< T > | operator * (const int argument) const |
| Scalar multiplication. | |
| MotionVector< T > | operator<< (const int argument) const |
| Bitshift of each component. | |
| MotionVector< T > | operator>> (const int argument) const |
| Bitshift of each component. | |
Public Attributes | |
| T | x |
| x and y components | |
| T | y |
Definition at line 53 of file motion.h.
1.4.5