64 Vector3(std::array<T, 3>& arr) :
std::array<T, 3>(arr) {}
67 std::copy(arr.begin(), arr.end(), this->begin());
72 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]};
81 return {(*this)[0] - other[0], (*this)[1] - other[1], (*this)[2] - other[2]};
88 (*this)[0] += other[0];
89 (*this)[1] += other[1];
90 (*this)[2] += other[2];
103inline std::string
zeroPad(
size_t value,
size_t width) {
104 std::ostringstream oss;
105 oss << std::setw(width) << std::setfill(
'0') << value;
112inline 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:64
Vector3< double > operator-(const Vector3< double > &other) const
Definition utils.hpp:80
Vector3(T x, T y, T z)
Definition utils.hpp:63
Vector3(const std::array< T, 3 > &arr)
Definition utils.hpp:66
Vector3< T > operator-(const Vector3< U > &other) const
Definition utils.hpp:76
Vector3< T > & operator+=(const Vector3< U > &other)
Definition utils.hpp:87
Vector3()
Definition utils.hpp:62
Vector3(std::array< T, 3 > &&arr)
Definition utils.hpp:65
Vector3< T > & operator/=(const U &val)
Definition utils.hpp:95
Vector3< T > operator-() const
Definition utils.hpp:84
Vector3< T > operator+(const Vector3< U > &other) const
Definition utils.hpp:71
Definition jobManagement.cpp:168
PPI
Definition utils.hpp:57
std::string zeroPad(size_t value, size_t width)
Definition utils.hpp:103
size_t roundUp(const size_t &number, const size_t &multiple)
Definition utils.hpp:112
constexpr size_t INVALID_PATCH_INDEX
Definition utils.hpp:52
constexpr size_t PPI_NON_ASSIGNED
Definition utils.hpp:53
constexpr size_t UNDEFINED_PARENT_PPI
Definition utils.hpp:54
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
int y
Definition slicingComputation.cpp:171
int x
Definition slicingComputation.cpp:171