9 #ifndef YARP_LITTLE_ENDIAN
15 double NetFloat32::swap(
double x)
const
17 UnionNetFloat32 in, out;
19 for (
int i = 0; i < 4; i++) {
20 out.c[i] = in.c[3 - i];
25 RawNetFloat32 NetFloat32::get()
const
27 return (
double)swap((
double)raw_value);
30 void NetFloat32::set(RawNetFloat32 v)
32 raw_value = (double)swap((
double)v);
44 NetFloat32::operator RawNetFloat32()
const
Vector & operator+=(Vector &a, const double &s)
Addition operator between a scalar and a vector (defined in Math.h).
Vector operator+(const Vector &a, const double &s)
Mathematical operations.
Vector operator-(const Vector &a, const double &s)
Subtraction operator between a vector and a scalar (defined in Math.h).
Vector operator*(double k, const Vector &b)
Scalar-vector product operator (defined in Math.h).
Vector & operator*=(Vector &a, double k)
Vector-scalar product operator (defined in Math.h).
Vector & operator/=(Vector &a, const Vector &b)
Vector-vector element-wise division operator (defined in Math.h).
Vector operator/(const Vector &a, const Vector &b)
Vector-vector element-wise division operator (defined in Math.h).
Vector & operator-=(Vector &a, const double &s)
Subtraction operator between a vector and a scalar (defined in Math.h).
An interface to the operating system, including Port based communication.
yarp::conf::float32_t NetFloat32
Definition of the NetFloat32 type.
The main, catch-all namespace for YARP.