PeriDEM 0.3.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
util::Point Struct Reference

A structure to represent 3d vectors. More...

#include <point.h>

Collaboration diagram for util::Point:

Public Member Functions

 Point ()
 Constructor.
 
template<class T >
 Point (T x, T y, T z)
 Constructor.
 
template<class T >
 Point (T x[3])
 Constructor.
 
 Point (const std::vector< double > &p)
 Constructor.
 
 Point (const Point &p)
 Copy constructor.
 
std::string printStr (int nt=0, int lvl=0) const
 Returns the string containing printable information about the object.
 
void print (int nt=0, int lvl=0) const
 Prints the information about the object.
 
std::vector< double > toVec () const
 Returns coordinate in stl form.
 
double length () const
 Computes the Euclidean length of the vector.
 
double lengthSq () const
 Computes the Euclidean length of the vector.
 
double dot (const Point &b) const
 Computes the dot product of this vector with another point.
 
double dist (const Point &b) const
 Computes the distance between a given point from this point.
 
Point cross (const Point &b) const
 Computes the cross product between this vector and given vector.
 
Point project (const Point &b, bool is_unit=false) const
 Computes projection of vector on this vector.
 
Point projectNormal (const Point &b, bool is_unit=false) const
 Computes projection of vector on plane with normal as this vector.
 

Data Fields

double d_x
 the x coordinate
 
double d_y
 the y coordinate
 
double d_z
 the z coordinate
 

Group operators

Point & operator+= (const double b)
 Addition by scalar operator.
 
Point & operator-= (const double b)
 Subtraction by scalar operator.
 
Point & operator*= (const double b)
 Multiplication by scalar operator.
 
Point & operator+= (const Point &b)
 Addition operator.
 
Point & operator-= (const Point &b)
 Subtraction operator.
 
Point & operator*= (const Point &b)
 Multiplication (pointwise/elementwise) operator.
 
Point & operator/= (const double b)
 Division by scalar operator.
 
double & operator[] (size_t i)
 Access operator.
 
const double & operator[] (size_t i) const
 Access operator.
 
Point operator+ (Point lhs, const Point &rhs)
 Addition operator.
 
Point operator- (Point lhs, const Point &rhs)
 Subtraction operator.
 
double operator* (Point lhs, const Point rhs)
 Multiplication (dot) operator.
 
Point operator* (Point lhs, const double rhs)
 Scalar product operator.
 
Point operator+ (Point lhs, const double rhs)
 Addition by scalar operator.
 
Point operator+ (const double lhs, Point rhs)
 Addition by scalar operator.
 
Point operator- (Point lhs, const double rhs)
 Subtraction by scalar operator.
 
Point operator- (const double lhs, Point rhs)
 Subtraction by scalar operator.
 
Point operator* (const double lhs, Point rhs)
 Multiplication by scalar operator.
 
Point operator/ (Point lhs, const double rhs)
 Division by scalar operator.
 

Detailed Description

A structure to represent 3d vectors.

Definition at line 30 of file point.h.

Constructor & Destructor Documentation

◆ Point() [1/5]

util::Point::Point ( )
inline

Constructor.

Definition at line 44 of file point.h.

44: d_x(0.), d_y(0.), d_z(0.){};
double d_y
the y coordinate
Definition point.h:36
double d_z
the z coordinate
Definition point.h:39
double d_x
the x coordinate
Definition point.h:33

Referenced by projectNormal().

Here is the caller graph for this function:

◆ Point() [2/5]

template<class T >
util::Point::Point ( T  x,
T  y,
T  z 
)
inline

Constructor.

Parameters
xThe x coordinate
yThe y coordinate
zThe z coordinate

Definition at line 52 of file point.h.

52: d_x(x), d_y(y), d_z(z){};

◆ Point() [3/5]

template<class T >
util::Point::Point ( T  x[3])
inlineexplicit

Constructor.

Parameters
xThe coordinate vector

Definition at line 59 of file point.h.

59: d_x(x[0]), d_y(x[1]), d_z(x[2]){};

◆ Point() [4/5]

util::Point::Point ( const std::vector< double > &  p)
inlineexplicit

Constructor.

Parameters
pVector

Definition at line 65 of file point.h.

65 {
66
67 if (p.empty())
68 return;
69 else if (p.size() == 1)
70 d_x = p[0];
71 else if (p.size() == 2) {
72 d_x = p[0];
73 d_y = p[1];
74 } else if (p.size() == 3) {
75 d_x = p[0];
76 d_y = p[1];
77 d_z = p[2];
78 }
79 };

References d_x, d_y, and d_z.

◆ Point() [5/5]

util::Point::Point ( const Point &  p)
inline

Copy constructor.

Parameters
pAnother Point object

Definition at line 85 of file point.h.

85: d_x(p.d_x), d_y(p.d_y), d_z(p.d_z) {};

Member Function Documentation

◆ cross()

Point util::Point::cross ( const Point &  b) const
inline

Computes the cross product between this vector and given vector.

Parameters
bAnother vector
Returns
Vector Cross product

Definition at line 157 of file point.h.

157 {
158 return {-d_z * b.d_y + d_y * b.d_z,
159 d_z * b.d_x - d_x * b.d_z,
160 -d_y * b.d_x + d_x * b.d_y};
161 }

References d_x, d_y, and d_z.

Referenced by util::angle(), and util::rotate().

Here is the caller graph for this function:

◆ dist()

double util::Point::dist ( const Point &  b) const
inline

Computes the distance between a given point from this point.

Parameters
bAnother point
Returns
Value Distance between the two points

Definition at line 146 of file point.h.

146 {
147 return std::sqrt((d_x - b.d_x) * (d_x - b.d_x) +
148 (d_y - b.d_y) * (d_y - b.d_y) +
149 (d_z - b.d_z) * (d_z - b.d_z));
150 }

References d_x, d_y, and d_z.

Referenced by util::doubleGaussian2d(), util::gaussian2d(), geom::Circle::isInside(), and geom::Sphere::isInside().

Here is the caller graph for this function:

◆ dot()

double util::Point::dot ( const Point &  b) const
inline

Computes the dot product of this vector with another point.

Parameters
bAnother vector
Returns
Value a dot product

Definition at line 138 of file point.h.

138 { return d_x * b.d_x + d_y * b.d_y + d_z * b
139 .d_z; }

References d_x, d_y, and d_z.

Referenced by material::RnpMaterial::getS(), geom::Drum2D::isInside(), project(), and projectNormal().

Here is the caller graph for this function:

◆ length()

◆ lengthSq()

double util::Point::lengthSq ( ) const
inline

Computes the Euclidean length of the vector.

Returns
Length Euclidean length of the vector

Definition at line 130 of file point.h.

130 { return d_x * d_x + d_y * d_y + d_z *
131 d_z; }

References d_x, d_y, and d_z.

Referenced by geom::doLinesIntersect(), geom::isPointInsideCylinder(), geom::isPointInsideCylinder(), geom::pointDistanceLine(), and geom::Line::wallContactQuery().

Here is the caller graph for this function:

◆ operator*=() [1/2]

Point & util::Point::operator*= ( const double  b)
inline

Multiplication by scalar operator.

Parameters
bScalar
Returns
point Vector after multiplying b to this point

Definition at line 328 of file point.h.

328 {
329
330 d_x *= b;
331 d_y *= b;
332 d_z *= b;
333 return *this;
334 }

References d_x, d_y, and d_z.

◆ operator*=() [2/2]

Point & util::Point::operator*= ( const Point &  b)
inline

Multiplication (pointwise/elementwise) operator.

Parameters
bVector
Returns
point Vector after elementwise multiplication of b with this point

Definition at line 367 of file point.h.

367 {
368
369 d_x *= b.d_x;
370 d_y *= b.d_y;
371 d_z *= b.d_z;
372 return *this;
373 }

References d_x, d_y, and d_z.

◆ operator+=() [1/2]

Point & util::Point::operator+= ( const double  b)
inline

Addition by scalar operator.

Parameters
bScalar
Returns
point Vector after adding b to this point

Definition at line 302 of file point.h.

302 {
303
304 d_x += b;
305 d_y += b;
306 d_z += b;
307 return *this;
308 }

References d_x, d_y, and d_z.

◆ operator+=() [2/2]

Point & util::Point::operator+= ( const Point &  b)
inline

Addition operator.

Parameters
bVector to be added
Returns
point Vector after adding b to this point

Definition at line 341 of file point.h.

341 {
342
343 d_x += b.d_x;
344 d_y += b.d_y;
345 d_z += b.d_z;
346 return *this;
347 }

References d_x, d_y, and d_z.

◆ operator-=() [1/2]

Point & util::Point::operator-= ( const double  b)
inline

Subtraction by scalar operator.

Parameters
bScalar
Returns
point Vector after subtracting b from this point

Definition at line 315 of file point.h.

315 {
316
317 d_x -= b;
318 d_y -= b;
319 d_z -= b;
320 return *this;
321 }

References d_x, d_y, and d_z.

◆ operator-=() [2/2]

Point & util::Point::operator-= ( const Point &  b)
inline

Subtraction operator.

Parameters
bVector to subtract
Returns
point Vector after subtracting b from this point

Definition at line 354 of file point.h.

354 {
355
356 d_x -= b.d_x;
357 d_y -= b.d_y;
358 d_z -= b.d_z;
359 return *this;
360 }

References d_x, d_y, and d_z.

◆ operator/=()

Point & util::Point::operator/= ( const double  b)
inline

Division by scalar operator.

Parameters
bScalar
Returns
point Vector after dividing b elementwise from this point

Definition at line 380 of file point.h.

380 {
381
382 d_x /= b;
383 d_y /= b;
384 d_z /= b;
385 return *this;
386 }

References d_x, d_y, and d_z.

◆ operator[]() [1/2]

double & util::Point::operator[] ( size_t  i)
inline

Access operator.

Parameters
iIndex of element in vector to access
Returns
value Value of ith element in vector

Definition at line 393 of file point.h.

393 {
394
395 if (i == 0)
396 return d_x;
397 else if (i == 1)
398 return d_y;
399 else
400 return d_z;
401 }

References d_x, d_y, and d_z.

◆ operator[]() [2/2]

const double & util::Point::operator[] ( size_t  i) const
inline

Access operator.

Parameters
iIndex of element in vector to access
Returns
value Value of ith element in vector

Definition at line 404 of file point.h.

404 {
405
406 if (i == 0)
407 return d_x;
408 else if (i == 1)
409 return d_y;
410 else
411 return d_z;
412 }

References d_x, d_y, and d_z.

◆ print()

void util::Point::print ( int  nt = 0,
int  lvl = 0 
) const
inline

Prints the information about the object.

Parameters
ntNumber of tabs to append before printing
lvlInformation level (higher means more information)

Definition at line 112 of file point.h.

112{ std::cout << printStr(nt, lvl); }
std::string printStr(int nt=0, int lvl=0) const
Returns the string containing printable information about the object.
Definition point.h:94

References printStr().

Here is the call graph for this function:

◆ printStr()

std::string util::Point::printStr ( int  nt = 0,
int  lvl = 0 
) const
inline

Returns the string containing printable information about the object.

Parameters
ntNumber of tabs to append before printing
lvlInformation level (higher means more information)
Returns
string String containing printable information about the object

Definition at line 94 of file point.h.

94 {
95
96 std::string tabS = "";
97 for (int i = 0; i < nt; i++)
98 tabS += "\t";
99
100 std::ostringstream oss;
101 oss << tabS << "(" << d_x << ", " << d_y << ", " << d_z << ")";
102
103 return oss.str();
104 }

References d_x, d_y, and d_z.

Referenced by print(), geom::AnnulusGeomObject::printStr(), geom::ComplexGeomObject::printStr(), geom::Plane::printStr(), geom::Triangle::printStr(), geom::Square::printStr(), geom::Hexagon::printStr(), geom::Drum2D::printStr(), geom::Cube::printStr(), geom::Cuboid::printStr(), geom::Circle::printStr(), geom::Ellipse::printStr(), geom::Sphere::printStr(), geom::Ellipsoid::printStr(), geom::Cylinder::printStr(), fe::QuadData::printStr(), geom::ParticleTransform::printStr(), inp::BCDeck::printStr(), and geom::OpenCuboidChannel3D::printStr().

Here is the caller graph for this function:

◆ project()

Point util::Point::project ( const Point &  b,
bool  is_unit = false 
) const
inline

Computes projection of vector on this vector.

Parameters
bAnother vector
is_unitSpecify if this is a unit vector
Returns
Vector Projection vector

Definition at line 169 of file point.h.

169 {
170 auto l_sq = (is_unit ? 1. : this->length() * this->length());
171 auto dot = this->dot(b);
172 return {dot * d_x / l_sq, dot * d_y / l_sq, dot * d_z / l_sq};
173 }
double dot(const Point &b) const
Computes the dot product of this vector with another point.
Definition point.h:138
double length() const
Computes the Euclidean length of the vector.
Definition point.h:124

References d_x, d_y, d_z, dot(), and length().

Here is the call graph for this function:

◆ projectNormal()

Point util::Point::projectNormal ( const Point &  b,
bool  is_unit = false 
) const
inline

Computes projection of vector on plane with normal as this vector.

Parameters
bAnother vector
is_unitSpecify if this is a unit vector
Returns
Vector Projection vector

Definition at line 181 of file point.h.

181 {
182 auto l_sq = (is_unit ? 1. : this->length() * this->length());
183 auto dot = this->dot(b);
184 return b - Point(dot * d_x / l_sq, dot * d_y / l_sq, dot * d_z / l_sq);
185 }
Point()
Constructor.
Definition point.h:44

References d_x, d_y, d_z, dot(), length(), and Point().

Here is the call graph for this function:

◆ toVec()

std::vector< double > util::Point::toVec ( ) const
inline

Returns coordinate in stl form.

Returns
Vector STL-format coordinates

Definition at line 118 of file point.h.

118{ return std::vector<double>({d_x, d_y, d_z}); }

References d_x, d_y, and d_z.

Referenced by anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), getInputJson(), and anonymous_namespace{testDeckRoundTrip.cpp}::testBCDeck().

Here is the caller graph for this function:

Friends And Related Symbol Documentation

◆ operator* [1/3]

Point operator* ( const double  lhs,
Point  rhs 
)
friend

Multiplication by scalar operator.

Parameters
lhslhs scalar
rhsrhs vector
Returns
point Vector after multiplying lhs to rhs pointwise

Definition at line 281 of file point.h.

281 {
282 rhs *= lhs;
283 return rhs;
284 }

◆ operator* [2/3]

Point operator* ( Point  lhs,
const double  rhs 
)
friend

Scalar product operator.

Parameters
lhslhs (to be modified)
rhsrhs scalar (to be multiplied to lhs)
Returns
point lhs after multiplying rhs to it

Definition at line 230 of file point.h.

230 {
231 lhs *= rhs;
232 return lhs;
233 }

◆ operator* [3/3]

double operator* ( Point  lhs,
const Point  rhs 
)
friend

Multiplication (dot) operator.

Parameters
lhslhs
rhsrhs
Returns
product Dot product of two vectors

Definition at line 220 of file point.h.

220 {
221 return lhs.d_x * rhs.d_x + lhs.d_y * rhs.d_y + lhs.d_z * rhs.d_z;
222 }

◆ operator+ [1/3]

Point operator+ ( const double  lhs,
Point  rhs 
)
friend

Addition by scalar operator.

Parameters
lhslhs scalar
rhsrhs (to be added to lhs)
Returns
point After adding lhs to rhs

Definition at line 251 of file point.h.

251 {
252 return {lhs + rhs.d_x, lhs + rhs.d_y, lhs + rhs.d_z};
253 }

◆ operator+ [2/3]

Point operator+ ( Point  lhs,
const double  rhs 
)
friend

Addition by scalar operator.

Parameters
lhslhs (to be modified)
rhsrhs (to be added to lhs)
Returns
point lhs after adding rhs to it

Definition at line 241 of file point.h.

241 {
242 return {lhs.d_x + rhs, lhs.d_y + rhs, lhs.d_z + rhs};
243 }

◆ operator+ [3/3]

Point operator+ ( Point  lhs,
const Point &  rhs 
)
friend

Addition operator.

Parameters
lhslhs (to be modified)
rhsrhs (to be added to lhs)
Returns
point lhs after adding rhs to it

Definition at line 198 of file point.h.

198 {
199 lhs += rhs;
200 return lhs;
201 }

◆ operator- [1/3]

Point operator- ( const double  lhs,
Point  rhs 
)
friend

Subtraction by scalar operator.

Parameters
lhslhs scalar
rhsrhs (to be subtracted from lhs)
Returns
point After subtracting rhs from lhs

Definition at line 271 of file point.h.

271 {
272 return {lhs - rhs.d_x, lhs - rhs.d_y, lhs - rhs.d_z};
273 }

◆ operator- [2/3]

Point operator- ( Point  lhs,
const double  rhs 
)
friend

Subtraction by scalar operator.

Parameters
lhslhs (to be modified)
rhsrhs (to be subtracted from lhs)
Returns
point lhs after subtracting rhs from it

Definition at line 261 of file point.h.

261 {
262 return {lhs.d_x - rhs, lhs.d_y - rhs, lhs.d_z - rhs};
263 }

◆ operator- [3/3]

Point operator- ( Point  lhs,
const Point &  rhs 
)
friend

Subtraction operator.

Parameters
lhslhs (to be modified)
rhsrhs (to be subtracted from lhs)
Returns
point lhs after subtracting rhs from it

Definition at line 209 of file point.h.

209 {
210 lhs -= rhs;
211 return lhs;
212 }

◆ operator/

Point operator/ ( Point  lhs,
const double  rhs 
)
friend

Division by scalar operator.

Parameters
lhslhs scalar
rhsrhs vector
Returns
point Vector after dividing lhs to rhs pointwise

Definition at line 292 of file point.h.

292 {
293 lhs /= rhs;
294 return lhs;
295 }

Field Documentation

◆ d_x

double util::Point::d_x

the x coordinate

Definition at line 33 of file point.h.

Referenced by geom::anonymous_namespace{openCuboidChannel3D.cpp}::aabbFromCorners(), mesh_gen::anonymous_namespace{annulusMesh2D.cpp}::addEllipseDiskOcc(), rw::writer::VtkWriter::appendNodes(), geom::anonymous_namespace{geomObjects.cpp}::axisAngleToQuatSafe(), particle::BaseParticle::BaseParticle(), geom::Triangle::box(), geom::Circle::box(), geom::Ellipse::box(), geom::Sphere::box(), geom::Ellipsoid::box(), geom::OpenRectChannel2D::box(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::buildCircleOcc(), mesh_gen::buildCylinderOcc(), mesh_gen::buildEllipseOcc(), mesh_gen::buildEllipsoidOcc(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::buildOpenCuboidChannel3DGeo(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::buildSphereOcc(), geom::OpenCuboidChannel3D::computeCenter(), geom::anonymous_namespace{openCuboidChannel3D.cpp}::cornersFromAabb(), cross(), util::derRotate2D(), dist(), dot(), geom::anonymous_namespace{geomObjects.cpp}::ellipseLocal(), geom::anonymous_namespace{geomObjects.cpp}::ellipsoidBodyCoords(), geom::anonymous_namespace{geomObjects.cpp}::ellipsoidMetric(), geom::ellipsoidRotationMatrix(), mesh_gen::anonymous_namespace{annulusMesh2D.cpp}::embedPointInAnnulus2D(), mesh_gen::anonymous_namespace{annulusMesh3D.cpp}::embedPointInAnnulus3D(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::embedPointOpenCuboidChannel3DForMesh(), geom::exampleGeomParams(), mesh_gen::anonymous_namespace{annulusMesh2D.cpp}::finish2DCutEmbedSurface(), mesh_gen::anonymous_namespace{annulusMesh3D.cpp}::finish3DCutEmbedVolume(), geom::getCenter(), geom::getCornerPoints(), fe::HexElem::getDerShapes(), fe::QuadElem::getDerShapes(), fe::HexElem::getShapes(), fe::LineElem::getShapes(), fe::QuadElem::getShapes(), fe::TetElem::getShapes(), fe::TriElem::getShapes(), geom::OpenCuboidChannel3D::inClosedShell(), geom::OpenCuboidChannel3D::inRemovedFaceSlab(), geom::BoxPartition::isNear(), geom::Square::isNearBoundary(), geom::Rectangle::isNearBoundary(), geom::Cube::isNearBoundary(), geom::Cuboid::isNearBoundary(), geom::isPointInsideBox(), geom::isPointInsideCuboid(), geom::isPointInsideRectangle(), geom::isPointInsideRectangle(), length(), lengthSq(), main(), main(), fe::LineElem::mapPointToRefElem(), fe::TetElem::mapPointToRefElem(), fe::TriElem::mapPointToRefElem(), util::Matrix3::Matrix3(), util::Matrix3::Matrix3(), operator*=(), operator*=(), operator+=(), operator+=(), operator-=(), operator-=(), operator/=(), operator[](), operator[](), mesh_gen::physicalGroupsWallOpenFromFace3D(), Point(), geom::OpenRectChannel2D::pointInPolygon2D(), geom::OpenRectChannel2D::polygonCentroid2D(), printStr(), geom::OpenCuboidChannel3D::printStr(), project(), projectNormal(), geom::Rectangle::Rectangle(), util::rotate2D(), util::rotateCW2D(), geom::Square::Square(), util::SymMatrix3::SymMatrix3(), toVec(), geom::OpenCuboidChannel3D::transform(), geom::OpenRectChannel2D::transform(), geom::triangleArea(), geom::OpenCuboidChannel3D::volume(), geom::Line::wallContactQuery(), and geom::Rectangle::wallContactQuery().

◆ d_y

double util::Point::d_y

the y coordinate

Definition at line 36 of file point.h.

Referenced by geom::anonymous_namespace{openCuboidChannel3D.cpp}::aabbFromCorners(), mesh_gen::anonymous_namespace{annulusMesh2D.cpp}::addEllipseDiskOcc(), rw::writer::VtkWriter::appendNodes(), geom::anonymous_namespace{geomObjects.cpp}::axisAngleToQuatSafe(), geom::Triangle::box(), geom::Circle::box(), geom::Ellipse::box(), geom::Sphere::box(), geom::Ellipsoid::box(), geom::OpenRectChannel2D::box(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::buildCircleOcc(), mesh_gen::buildCylinderOcc(), mesh_gen::buildEllipseOcc(), mesh_gen::buildEllipsoidOcc(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), anonymous_namespace{main.cpp}::buildInputJson(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::buildOpenCuboidChannel3DGeo(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::buildSphereOcc(), geom::OpenCuboidChannel3D::computeCenter(), geom::anonymous_namespace{openCuboidChannel3D.cpp}::cornersFromAabb(), cross(), util::derRotate2D(), dist(), dot(), geom::anonymous_namespace{geomObjects.cpp}::ellipseLocal(), geom::anonymous_namespace{geomObjects.cpp}::ellipsoidBodyCoords(), geom::anonymous_namespace{geomObjects.cpp}::ellipsoidMetric(), geom::ellipsoidRotationMatrix(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::embedPointOpenCuboidChannel3DForMesh(), geom::exampleGeomParams(), mesh_gen::anonymous_namespace{annulusMesh2D.cpp}::finish2DCutEmbedSurface(), mesh_gen::anonymous_namespace{annulusMesh3D.cpp}::finish3DCutEmbedVolume(), fe::HexElem::getDerShapes(), fe::QuadElem::getDerShapes(), fe::HexElem::getShapes(), fe::QuadElem::getShapes(), fe::TetElem::getShapes(), fe::TriElem::getShapes(), geom::OpenCuboidChannel3D::inClosedShell(), geom::OpenCuboidChannel3D::inRemovedFaceSlab(), geom::BoxPartition::isNear(), geom::Square::isNearBoundary(), geom::Rectangle::isNearBoundary(), geom::Cube::isNearBoundary(), geom::Cuboid::isNearBoundary(), geom::isPointInsideBox(), geom::isPointInsideCuboid(), geom::isPointInsideRectangle(), geom::isPointInsideRectangle(), length(), lengthSq(), main(), main(), fe::TetElem::mapPointToRefElem(), fe::TriElem::mapPointToRefElem(), util::Matrix3::Matrix3(), util::Matrix3::Matrix3(), operator*=(), operator*=(), operator+=(), operator+=(), operator-=(), operator-=(), operator/=(), operator[](), operator[](), mesh_gen::physicalGroupsWallOpenFromFace3D(), Point(), geom::OpenRectChannel2D::pointInPolygon2D(), printStr(), geom::OpenCuboidChannel3D::printStr(), project(), projectNormal(), geom::Rectangle::Rectangle(), util::rotate2D(), util::rotateCW2D(), geom::Square::Square(), util::SymMatrix3::SymMatrix3(), anonymous_namespace{testDeckRoundTrip.cpp}::testBCBaseDeck(), toVec(), geom::OpenCuboidChannel3D::transform(), geom::triangleArea(), geom::OpenCuboidChannel3D::volume(), geom::Line::wallContactQuery(), and geom::Rectangle::wallContactQuery().

◆ d_z

double util::Point::d_z

the z coordinate

Definition at line 39 of file point.h.

Referenced by geom::anonymous_namespace{openCuboidChannel3D.cpp}::aabbFromCorners(), mesh_gen::anonymous_namespace{annulusMesh2D.cpp}::addEllipseDiskOcc(), rw::writer::VtkWriter::appendNodes(), geom::anonymous_namespace{geomObjects.cpp}::axisAngleToQuatSafe(), geom::Triangle::box(), geom::Sphere::box(), geom::Ellipsoid::box(), geom::OpenRectChannel2D::box(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::buildCircleOcc(), mesh_gen::buildCylinderOcc(), mesh_gen::buildEllipseOcc(), mesh_gen::buildEllipsoidOcc(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::buildOpenCuboidChannel3DGeo(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::buildSphereOcc(), geom::OpenCuboidChannel3D::computeCenter(), geom::anonymous_namespace{openCuboidChannel3D.cpp}::cornersFromAabb(), cross(), dist(), dot(), geom::anonymous_namespace{geomObjects.cpp}::ellipsoidBodyCoords(), geom::anonymous_namespace{geomObjects.cpp}::ellipsoidMetric(), geom::ellipsoidRotationMatrix(), mesh_gen::anonymous_namespace{builtinGmshGeometry.cpp}::embedPointOpenCuboidChannel3DForMesh(), geom::exampleGeomParams(), mesh_gen::anonymous_namespace{annulusMesh2D.cpp}::finish2DCutEmbedSurface(), mesh_gen::anonymous_namespace{annulusMesh3D.cpp}::finish3DCutEmbedVolume(), fe::HexElem::getDerShapes(), fe::HexElem::getShapes(), fe::TetElem::getShapes(), geom::OpenCuboidChannel3D::inClosedShell(), geom::OpenCuboidChannel3D::inRemovedFaceSlab(), geom::OpenRectChannel2D::isInside(), geom::BoxPartition::isNear(), geom::Cube::isNearBoundary(), geom::Cuboid::isNearBoundary(), geom::isPointInsideBox(), geom::isPointInsideCuboid(), length(), lengthSq(), main(), fe::TetElem::mapPointToRefElem(), util::Matrix3::Matrix3(), util::Matrix3::Matrix3(), operator*=(), operator*=(), operator+=(), operator+=(), operator-=(), operator-=(), operator/=(), operator[](), operator[](), mesh_gen::physicalGroupsWallOpenFromFace3D(), Point(), printStr(), geom::OpenCuboidChannel3D::printStr(), project(), projectNormal(), geom::Rectangle::Rectangle(), geom::Square::Square(), util::SymMatrix3::SymMatrix3(), toVec(), geom::OpenCuboidChannel3D::transform(), geom::OpenCuboidChannel3D::volume(), and geom::Rectangle::wallContactQuery().


The documentation for this struct was generated from the following file: