Go to the documentation of this file.
40Vector :: Vector() :
Vector(0.0, 0.0, 0.0)
44Vector :: Vector(
double x,
double y,
double z) :
x(
x),
y(
y),
z(
z)
49Vector :: operator[](
int index)
const {
50 if (index == 0)
return this->
x;
51 if (index == 1)
return this->
y;
52 if (index == 2)
return this->
z;
53 throw std::out_of_range(
"Index out of range for Vector");
81AABB :: contains(
double x,
double y,
double z)
87AABB :: merge(
double x,
double y,
double z)
95 if (v.
x < this->min.x) this->
min.x = v.
x;
96 if (v.
y < this->min.y) this->
min.y = v.
y;
97 if (v.
z < this->min.z) this->
min.z = v.
z;
98 if (v.
x > this->max.x) this->
max.x = v.
x;
99 if (v.
y > this->max.y) this->
max.y = v.
y;
100 if (v.
z > this->max.z) this->
max.z = v.
z;
bool contains(CONTTYPE &cont, const T &t)
void merge(const Vector &v)
Expands the bounding box to include a given point.
This page is part of the
OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak
Bořek Patzák
Project e-mail:
oofem@fsv.cvut.cz
Generated at for OOFEM by
doxygen
1.15.0 written by Dimitri van Heesch,
© 1997-2011