Created by the British Broadcasting Corporation.
Motion vector class - just a pair.
#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. | |
T & | operator[] (const int pos) |
Array-style element access. | |
const T & | operator[] (const int pos) const |
Array-style element access. |
Public Attributes | |
T | x |
x and y components | |
T | y |
|
inline |
Referenced by operator*(), operator*(), operator+(), operator-(), and operator>>().
|
inline |
|
inline |
|
inline |
References MotionVector(), x, and y.
|
inline |
References MotionVector(), x, and y.
|
inline |
References MotionVector(), x, and y.
|
inline |
References MotionVector(), x, and y.
|
inline |
|
inline |
References MotionVector(), x, and y.
|
inline |
|
inline |
T dirac::MotionVector< T >::x |
Referenced by dirac::Norm1(), dirac::Norm2(), operator*(), operator*(), operator+(), operator-(), dirac::operator<<(), operator>>(), and dirac::operator>>().
T dirac::MotionVector< T >::y |
Referenced by dirac::Norm1(), dirac::Norm2(), operator*(), operator*(), operator+(), operator-(), dirac::operator<<(), operator>>(), and dirac::operator>>().
© 2004 British Broadcasting Corporation.
Dirac code licensed under the Mozilla Public License (MPL) Version 1.1.
HTML documentation generated by Dimitri van Heesch's
excellent Doxygen tool.