36 #ifndef SBG_VECTOR_3_H 37 #define SBG_VECTOR_3_H 40 #include <geometry_msgs/Vector3.h> 61 return std::fabs(firstValue - secondValue) <= (std::numeric_limits<T>::epsilon() * std::fabs(firstValue + secondValue));
89 m_data[0] =
static_cast<T
>(0.0);
90 m_data[1] =
static_cast<T
>(0.0);
91 m_data[2] =
static_cast<T
>(0.0);
116 assert(array_size == 3);
118 m_data[0] = p_raw_data[0];
119 m_data[1] = p_raw_data[1];
120 m_data[2] = p_raw_data[2];
152 return !(*
this == ref_vector);
164 return m_data[index];
174 return static_cast<const T*
>(m_data.data());
183 #endif // SBG_VECTOR_3_H SbgVector3< double > SbgVector3d
const T * data(void) const
bool operator!=(const SbgVector3< T > &ref_vector)
SbgVector3< float > SbgVector3f
bool operator==(const SbgVector3< T > &ref_vector)
bool areEquals(T firstValue, T secondValue)
std::array< T, 3 > m_data
SbgVector3(const T *p_raw_data, size_t array_size)
SbgVector3(T x_value, T y_value, T z_value)
Header file that contains all common definitions.
const T operator()(size_t index) const