60 Vector3(std::array<T, 3>& arr) :
std::array<T, 3>(arr) {}
63 std::copy(arr.begin(), arr.end(), this->begin());
68 return {(*this)[0] + other[0], (*this)[1] + other[1], (*this)[2] + other[2]};
73 return {(*this)[0] - other[0], (*this)[1] - other[1], (*this)[2] - other[2]};
77 return {(*this)[0] - other[0], (*this)[1] - other[1], (*this)[2] - other[2]};
84 (*this)[0] += other[0];
85 (*this)[1] += other[1];
86 (*this)[2] += other[2];
99inline std::string
zeroPad(
size_t value,
size_t width) {
100 std::ostringstream oss;
101 oss << std::setw(width) << std::setfill(
'0') << value;
108inline size_t roundUp(
const size_t& number,
const size_t& multiple) {
return (number + multiple - 1) & -multiple;}
Vector3(std::array< T, 3 > &arr)
Definition utils.hpp:60
Vector3< double > operator-(const Vector3< double > &other) const
Definition utils.hpp:76
Vector3(T x, T y, T z)
Definition utils.hpp:59
Vector3(const std::array< T, 3 > &arr)
Definition utils.hpp:62
Vector3< T > operator-(const Vector3< U > &other) const
Definition utils.hpp:72
Vector3< T > & operator+=(const Vector3< U > &other)
Definition utils.hpp:83
Vector3()
Definition utils.hpp:58
Vector3(std::array< T, 3 > &&arr)
Definition utils.hpp:61
Vector3< T > & operator/=(const U &val)
Definition utils.hpp:91
Vector3< T > operator-() const
Definition utils.hpp:80
Vector3< T > operator+(const Vector3< U > &other) const
Definition utils.hpp:67
Definition jobManagement.cpp:168
std::string zeroPad(size_t value, size_t width)
Definition utils.hpp:99
size_t roundUp(const size_t &number, const size_t &multiple)
Definition utils.hpp:108
constexpr size_t INVALID_PATCH_INDEX
Definition utils.hpp:52
uint16_t typeGeometryInput
Definition utils.hpp:46
const size_t g_infinitenumber
Definition utils.hpp:49
const typeGeometryInput g_infiniteDepth
Definition utils.hpp:48
const size_t g_valueNotSet
Definition utils.hpp:50