ECRobot C++ API for LEGO MINDSTORMS NXT  1.0.10
ecrobot::VectorT< T > Struct Template Reference

Simple templated vector implementation. More...

#include <Vector.h>

List of all members.

Public Member Functions

 VectorT ()
 Constructor.
 VectorT (T x, T y)
 Constructor.

Public Attributes

mX
 Fist index value of VectorT.
mY
 Second index value of VectorT.

Friends

VectorToperator+= (VectorT< T > &left, const VectorT< T > &right)
 Add assignment.
VectorToperator-= (VectorT< T > &left, const VectorT< T > &right)
 Subtract assignment.
VectorToperator*= (VectorT< T > &left, const VectorT< T > &right)
 Multiply assignment.
VectorToperator/= (VectorT< T > &left, const VectorT< T > &right)
 Devision assignment.
VectorT operator+ (const VectorT< T > &left, const VectorT< T > &right)
 Add.
VectorT operator- (const VectorT< T > &left, const VectorT< T > &right)
 Subtract.
VectorT operator* (const VectorT< T > &left, const VectorT< T > &right)
 Multiply.
VectorT operator/ (const VectorT< T > &left, const VectorT< T > &right)
 Devision.

Detailed Description

template<class T>
struct ecrobot::VectorT< T >

Simple templated vector implementation.


Constructor & Destructor Documentation

template<class T>
ecrobot::VectorT< T >::VectorT ( ) [inline]

Constructor.

Initialized with 0.

template<class T>
ecrobot::VectorT< T >::VectorT ( x,
y 
) [inline]

Constructor.

Parameters:
xFirst index value
ySecond index value

The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Enumerations Enumerator Friends Defines