<commit_before>/*
  Copyright 2014 <NAME>
*/

#ifndef INCLUDE_XIMUAPI_DATA_VECTOR3_H_
#define INCLUDE_XIMUAPI_DATA_VECTOR3_H_

namespace ximu {

// <summary>
// Simple vector class describing the x y z axis.
// </summary>
template<typename T>
class Vector3 {
 private:
  T _x;
  T _y;
  T _z;

 public:
  Vector3(const Vector3& other)
    :
     _x(other.x()),
     _y(other.y()),
     _z(other.z()) {
    }
  Vector3()
    :
     _x(static_cast<T>(0)),
     _y(static_cast<T>(0)),
     _z(static_cast<T>(0)) {
    }

  Vector3(T x, T y, T z)
    :
    _x(x), _y(y), _z(z) {
    }
  // Returns the x component
  T x() const {
    return _x;
  }

  // Returns the y component
  T y() const {
    return _y;
  }

  // Returns the z component
  T z() const {
    return _z;
  }
};

typedef Vector3<float> Vector3f;
typedef Vector3<double> Vector3d;
}  // namespace ximu

#endif  // INCLUDE_XIMUAPI_DATA_VECTOR3_H_<commit_msg>update vectors.h<commit_after>/*
  Copyright 2014 <NAME>
*/

#ifndef INCLUDE_XIMUAPI_DATA_VECTOR3_H_
#define INCLUDE_XIMUAPI_DATA_VECTOR3_H_

namespace ximu {

// <summary>
// Simple vector class describing the x y z axis.
// </summary>
template<typename T>
class Vector3 {
 private:
  T _x;
  T _y;
  T _z;

 public: 
  Vector3(const Vector3& other)
    :
     _x(other.x()),
     _y(other.y()),
     _z(other.z()) {
    }
  Vector3()
    :
     _x(static_cast<T>(0)),
     _y(static_cast<T>(0)),
     _z(static_cast<T>(0)) {
    }

  Vector3(T x, T y, T z)
    :
    _x(x), _y(y), _z(z) {
    }
  // Returns the x component
  T x() const {
    return _x;
  }

  // Returns the y component
  T y() const {
    return _y;
  }

  // Returns the z component
  T z() const {
    return _z;
  }
};

typedef Vector3<float> Vector3f;
typedef Vector3<double> Vector3d;
typedef Vector3<short> Vector3s;
}  // namespace ximu

#endif  // INCLUDE_XIMUAPI_DATA_VECTOR3_H_
{'fraction_non_alphanumeric': 0.14035087719298245, 'fraction_numerical': 0.02126528442317916, 'mean_word_length': 2.654368932038835, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3688240', 'n_tokens_mistral': 808, 'n_tokens_neox': 780, 'n_words': 181}