60 return Vertex(value * this->
x, value * this->
y, value * this->
z);
65 return *
this * ((
real)1.0 / value);
119 if (
mag - std::abs(
skal) < 0.0001)
126 printf(
"(%2.8f,%2.8f,%2.8f)\n",
x,
y,
z);
131 ost.write((
char*)&
x, 4);
132 ost.write((
char*)&
y, 4);
133 ost.write((
char*)&
z, 4);
138 ost <<
x <<
" " <<
y <<
" " <<
z;
151 return x >= min &&
x <= max;
156 return y >= min &&
y <= max;
161 return z >= min &&
z <= max;
174 return value1 < value2 ? value1 : value2;
179 return value1 > value2 ? value1 : value2;
std::shared_ptr< T > SPtr
static real acosReal(const real &val)
static real sqrtReal(const real &val)
static bool equal(const real &val1, const real &val2, real maxRelDiff=EPSILON)
real getMaximum(const real &value1, const real &value2)
real getMinimum(const real &value1, const real &value2)
real getEuclideanDistanceTo(const Vertex &w) const
Vertex operator/(const real &value) const
real getMagnitude() const
static void setMinMax(real &minX, real &maxX, real &minY, real &maxY, real &minZ, real &maxZ, const Vertex &v1, const Vertex &v2, const Vertex &v3)
void printFormatted(std::ostream &ost) const
bool isXbetween(real min, real max) const
Vertex operator+(const Vertex &v) const
Vertex operator-(const Vertex &v) const
bool operator==(const Vertex &v) const
static void calculateMinMax(const real &value1, const real &value2, const real &value3, real &min, real &max)
int isEqual(const Vertex &w) const
bool isZbetween(real min, real max) const
Vertex operator*(const real &value) const
real getInnerAngle(const Vertex &w) const
bool isYbetween(real min, real max) const