Template Class SbgVector3

Class Documentation

template<class T>
class SbgVector3

Class to define a Vector3.

Public Functions

inline SbgVector3()

Empty constructor.

inline SbgVector3(T x_value, T y_value, T z_value)

Constructor.

Parameters:
  • x_value[in] Vector X value.

  • y_value[in] Vector Y value.

  • z_value[in] Vector Z value.

inline SbgVector3(const T *p_raw_data, size_t array_size)

Constructor.

Parameters:
  • p_raw_data[in] Pointer to data array.

  • array_size[in] Array size (Should be defined as 3).

inline bool operator==(const SbgVector3<T> &ref_vector)

Comparison equal operator.

Parameters:

ref_vector[in] Vector to compare.

Returns:

True if the vector are equals.

inline bool operator!=(const SbgVector3<T> &ref_vector)

Comparison not equal operator.

Parameters:

ref_vector[in] Vector to compare.

Returns:

True if the vector are equals.

inline const T operator()(size_t index) const

Getter parenthesis operator

Parameters:

index[in] Index of value to retrieve.

Returns:

Value at index.

inline const T *data() const

Get the raw data of the sbgVector.

Returns:

Raw vector data.