|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
12 #ifndef YARP_LITTLE_ENDIAN
18 double NetFloat32::swap(
double x)
const
20 UnionNetFloat32 in, out;
22 for (
int i = 0; i < 4; i++) {
23 out.c[i] = in.c[3 - i];
28 RawNetFloat32 NetFloat32::get()
const
30 return (
double)swap((
double)raw_value);
33 void NetFloat32::set(RawNetFloat32 v)
35 raw_value = (double)swap((
double)v);
47 NetFloat32::operator RawNetFloat32()
const
93 #endif // YARP_LITTLE_ENDIAN
Vector & operator*=(Vector &a, double k)
Vector-scalar product operator (defined in Math.h).
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 Vector &b)
Vector-vector element-wise division operator (defined in Math.h).
yarp::conf::float32_t NetFloat32
Definition of the NetFloat32 type.
Vector operator+(const Vector &a, const double &s)
Mathematical operations.
Vector & operator/=(Vector &a, const Vector &b)
Vector-vector element-wise division operator (defined in Math.h).
Vector operator*(double k, const Vector &b)
Scalar-vector product operator (defined in Math.h).
An interface to the operating system, including Port based communication.
Vector & operator-=(Vector &a, const double &s)
Subtraction operator between a vector and a scalar (defined in Math.h).
The main, catch-all namespace for YARP.
Vector operator-(const Vector &a, const double &s)
Subtraction operator between a vector and a scalar (defined in Math.h).