|
YARP
Yet Another Robot Platform
|
|
Go to the documentation of this file.
12 #ifndef YARP_LITTLE_ENDIAN
18 double NetFloat64::swap(
double x)
const
20 UnionNetFloat64 in, out;
22 for (
int i = 0; i < 8; i++) {
23 out.c[i] = in.c[7 - i];
28 RawNetFloat64 NetFloat64::get()
const
30 return (
double)swap((
double)raw_value);
33 void NetFloat64::set(RawNetFloat64 v)
35 raw_value = (double)swap((
double)v);
47 NetFloat64::operator RawNetFloat64()
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).
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).
yarp::conf::float64_t NetFloat64
Definition of the NetFloat64 type.