|
Robotics Library
0.7.0
|
Go to the documentation of this file.
27 #ifndef RL_MATH_UNIT_H
28 #define RL_MATH_UNIT_H
219 theta = ::std::atan2(y, x);
226 theta = ::std::atan2(y, x);
231 x = r * ::std::cos(theta);
232 y = r * ::std::sin(theta);
237 x = rho * ::std::sin(psi) * ::std::cos(theta);
238 y = rho * ::std::sin(psi) * ::std::sin(theta);
239 z = rho * ::std::cos(psi);
244 #endif // RL_MATH_UNIT_H
@ UNIT_VOLT
Definition: Unit.h:174
Quaternion< Scalar > pow(const Scalar &t) const
Definition: QuaternionBaseAddons.h:128
static const Real GIGA2UNIT
Definition: Unit.h:187
@ UNIT_NEWTON_METER
Definition: Unit.h:182
@ UNIT_NONE
Definition: Unit.h:163
static const Real MILLI2UNIT
Definition: Unit.h:198
@ UNIT_KELVIN
Definition: Unit.h:168
@ UNIT_MOLE
Definition: Unit.h:169
@ UNIT_RADIAN_PER_SECOND_SQUARED
Definition: Unit.h:179
static const Real UNIT2KILO
Definition: Unit.h:206
@ UNIT_NEWTON
Definition: Unit.h:173
static const Real RAD2DEG
Definition: Unit.h:202
@ UNIT_NEWTON_METER_SECOND
Definition: Unit.h:181
void sphericalToCartesian(const Real &rho, const Real &psi, const Real &theta, Real &x, Real &y, Real &z)
Definition: Unit.h:235
static const Real MEGA2UNIT
Definition: Unit.h:194
@ UNIT_AMPERE
Definition: Unit.h:167
static const Real DEG2RAD
Definition: Unit.h:185
static const Real UNIT2NANO
Definition: Unit.h:214
static const Real UNIT2MILLI
Definition: Unit.h:212
void cartesianToSpherical(const Real &x, const Real &y, const Real &z, Real &rho, Real &psi, Real &theta)
Definition: Unit.h:222
@ UNIT_CELSIUS
Definition: Unit.h:175
@ UNIT_RADIAN
Definition: Unit.h:171
@ UNIT_NEWTON_SECOND
Definition: Unit.h:180
@ UNIT_CANDELA
Definition: Unit.h:170
Unit
Definition: Unit.h:162
@ UNIT_METER_PER_SECOND_SQUARED
Definition: Unit.h:177
void polarToCartesian(const Real &r, const Real &theta, Real &x, Real &y)
Definition: Unit.h:229
static const Real UNIT2GIGA
Definition: Unit.h:204
static const Real NANO2UNIT
Definition: Unit.h:200
@ UNIT_RADIAN_PER_SECOND
Definition: Unit.h:178
@ UNIT_KILOGRAM
Definition: Unit.h:165
@ UNIT_HERTZ
Definition: Unit.h:172
@ UNIT_METER
Definition: Unit.h:164
static const Real MICRO2UNIT
Definition: Unit.h:196
static const Real KILO2UNIT
Definition: Unit.h:192
double Real
Definition: Real.h:42
static const Real GRAVITY
[m ยท s-2]
Definition: Unit.h:190
void cartesianToPolar(const Real &x, const Real &y, Real &r, Real &theta)
Definition: Unit.h:216
@ UNIT_SECOND
Definition: Unit.h:166
static const Real UNIT2MEGA
Definition: Unit.h:208
@ UNIT_METER_PER_SECOND
Definition: Unit.h:176
static const Real UNIT2MICRO
Definition: Unit.h:210
Robotics Library.
Definition: AnalogInput.cpp:30