command.cpp
Go to the documentation of this file.
1 #include "tuw_geometry/command.h"
2 using namespace tuw;
3 
4 Command::Command () : cv::Vec<double,2>( 0, 0 ) {}
5 
6 Command::Command ( double v, double w ) : cv::Vec<double,2>( v, w ) {}
7 
8 Command::Command ( const Command &o ) : cv::Vec<double,2>( o) {}
9 
10 double &Command::v(){
11  return this->val[0];
12 }
13 
14 const double &Command::v() const{
15  return this->val[0];
16 }
17 
18 double &Command::w(){
19  return this->val[1];
20 }
21 
22 const double &Command::w() const{
23  return this->val[1];
24 }
25 
26 void Command::set ( double v, double w ) {
27  this->val[0] = v, this->val[1] = w;
28 };
void set(double v, double w)
Definition: command.cpp:26
Definition: point2d.h:208
double & w()
Definition: command.cpp:18
Definition: command.h:8
double & v()
Definition: command.cpp:10
Command()
constructor
Definition: command.cpp:4


tuw_geometry
Author(s): Markus Bader
autogenerated on Mon Jun 10 2019 15:33:08