#include <yarp/math/Vec2D.h>
Inheritance diagram for yarp::math::Vec2D< T >:Public Member Functions | |
| Vec2D () | |
| Vec2D (const T &x_value, const T &y_value) | |
| Vec2D (const yarp::sig::Vector &v) | |
| operator yarp::sig::Vector () const | |
| T | norm () const |
| Returns the Euclidean norm of the Vec2D, i.e. | |
| std::string | toString (int precision=-1, int width=-1) const |
| Creates a string object containing a text representation of the object. | |
| bool | read (yarp::os::ConnectionReader &connection) override |
| Read this object from a network connection. | |
| bool | write (yarp::os::ConnectionWriter &connection) const override |
| Write vector to a connection. | |
| yarp::os::Type | getType () const override |
| yarp::math::Vec2D< T > & | operator+= (const yarp::math::Vec2D< T > &rhs) |
| yarp::math::Vec2D< T > & | operator-= (const yarp::math::Vec2D< T > &rhs) |
| bool | operator== (const yarp::math::Vec2D< T > &rhs) const |
| bool | operator!= (const yarp::math::Vec2D< T > &rhs) const |
| bool | read (yarp::os::ConnectionReader &connection) |
| Read this object from a network connection. | |
| bool | read (yarp::os::ConnectionReader &connection) |
| Read this object from a network connection. | |
| bool | read (yarp::os::ConnectionReader &connection) |
| Read this object from a network connection. | |
| bool | write (yarp::os::ConnectionWriter &connection) const |
| Write this object to a network connection. | |
| bool | write (yarp::os::ConnectionWriter &connection) const |
| Write this object to a network connection. | |
| bool | write (yarp::os::ConnectionWriter &connection) const |
| Write this object to a network connection. | |
| bool | read (yarp::os::ConnectionReader &connection) |
| Read this object from a network connection. | |
| bool | read (yarp::os::ConnectionReader &connection) |
| Read this object from a network connection. | |
| bool | read (yarp::os::ConnectionReader &connection) |
| Read this object from a network connection. | |
| bool | write (yarp::os::ConnectionWriter &connection) const |
| Write this object to a network connection. | |
| bool | write (yarp::os::ConnectionWriter &connection) const |
| Write this object to a network connection. | |
| bool | write (yarp::os::ConnectionWriter &connection) const |
| Write this object to a network connection. | |
Public Member Functions inherited from yarp::os::PortReader | |
| virtual | ~PortReader () |
| Destructor. | |
| virtual Type | getReadType () const |
Public Member Functions inherited from yarp::os::PortWriter | |
| virtual | ~PortWriter () |
| Destructor. | |
| virtual void | onCompletion () const |
| This is called when the port has finished all writing operations. | |
| virtual void | onCommencement () const |
| This is called when the port is about to begin writing operations. | |
| virtual yarp::os::Type | getWriteType () const |
Public Attributes | |
| T | x |
| T | y |
Additional Inherited Members | |
Static Public Member Functions inherited from yarp::os::Portable | |
| static bool | copyPortable (const PortWriter &writer, PortReader &reader) |
| Copy one portable to another, via writing and reading. | |
| yarp::math::Vec2D< T >::Vec2D | ( | ) |
| yarp::math::Vec2D< T >::Vec2D | ( | const T & | x_value, |
| const T & | y_value | ||
| ) |
| yarp::math::Vec2D< T >::Vec2D | ( | const yarp::sig::Vector & | v | ) |
|
inlineoverridevirtual |
Reimplemented from yarp::os::Portable.
| T yarp::math::Vec2D< T >::norm | ( | ) | const |
|
inlineexplicit |
| bool yarp::math::Vec2D< T >::operator!= | ( | const yarp::math::Vec2D< T > & | rhs | ) | const |
| yarp::math::Vec2D< T > & yarp::math::Vec2D< T >::operator+= | ( | const yarp::math::Vec2D< T > & | rhs | ) |
| yarp::math::Vec2D< T > & yarp::math::Vec2D< T >::operator-= | ( | const yarp::math::Vec2D< T > & | rhs | ) |
| bool yarp::math::Vec2D< T >::operator== | ( | const yarp::math::Vec2D< T > & | rhs | ) | const |
|
virtual |
Read this object from a network connection.
Override this for your particular class.
| reader | an interface to the network connection for reading |
Implements yarp::os::Portable.
|
virtual |
Read this object from a network connection.
Override this for your particular class.
| reader | an interface to the network connection for reading |
Implements yarp::os::Portable.
|
virtual |
Read this object from a network connection.
Override this for your particular class.
| reader | an interface to the network connection for reading |
Implements yarp::os::Portable.
|
virtual |
Read this object from a network connection.
Override this for your particular class.
| reader | an interface to the network connection for reading |
Implements yarp::os::Portable.
|
virtual |
Read this object from a network connection.
Override this for your particular class.
| reader | an interface to the network connection for reading |
Implements yarp::os::Portable.
|
virtual |
Read this object from a network connection.
Override this for your particular class.
| reader | an interface to the network connection for reading |
Implements yarp::os::Portable.
|
overridevirtual |
Read this object from a network connection.
Override this for your particular class.
| reader | an interface to the network connection for reading |
Implements yarp::os::Portable.
| std::string yarp::math::Vec2D< T >::toString | ( | int | precision = -1, |
| int | width = -1 |
||
| ) | const |
|
virtual |
Write this object to a network connection.
Override this for your particular class. Be aware that depending on the nature of the connections a port has, and what protocol they use, and how efficient the YARP implementation is, this method may be called once, twice, or many times, as the result of a single call to Port::write
| writer | an interface to the network connection for writing |
Implements yarp::os::Portable.
|
virtual |
Write this object to a network connection.
Override this for your particular class. Be aware that depending on the nature of the connections a port has, and what protocol they use, and how efficient the YARP implementation is, this method may be called once, twice, or many times, as the result of a single call to Port::write
| writer | an interface to the network connection for writing |
Implements yarp::os::Portable.
|
virtual |
Write this object to a network connection.
Override this for your particular class. Be aware that depending on the nature of the connections a port has, and what protocol they use, and how efficient the YARP implementation is, this method may be called once, twice, or many times, as the result of a single call to Port::write
| writer | an interface to the network connection for writing |
Implements yarp::os::Portable.
|
virtual |
Write this object to a network connection.
Override this for your particular class. Be aware that depending on the nature of the connections a port has, and what protocol they use, and how efficient the YARP implementation is, this method may be called once, twice, or many times, as the result of a single call to Port::write
| writer | an interface to the network connection for writing |
Implements yarp::os::Portable.
|
virtual |
Write this object to a network connection.
Override this for your particular class. Be aware that depending on the nature of the connections a port has, and what protocol they use, and how efficient the YARP implementation is, this method may be called once, twice, or many times, as the result of a single call to Port::write
| writer | an interface to the network connection for writing |
Implements yarp::os::Portable.
|
virtual |
Write this object to a network connection.
Override this for your particular class. Be aware that depending on the nature of the connections a port has, and what protocol they use, and how efficient the YARP implementation is, this method may be called once, twice, or many times, as the result of a single call to Port::write
| writer | an interface to the network connection for writing |
Implements yarp::os::Portable.
|
overridevirtual |
Write vector to a connection.
return true if a Vec2D was written correctly
Implements yarp::os::Portable.
| T yarp::math::Vec2D< T >::x |
| T yarp::math::Vec2D< T >::y |