NEMoSys  0.63.0
A modular, extensible resource with robust automated mesh generation, mesh quality analysis, adaptive mesh refinement, and data transfer between arbitrary meshes.
NEM::MTH::Vector Struct Reference

Detailed Description

Definition at line 54 of file convexContainer.H.

Public Member Functions

Vector operator- (Vector p) const
 
Vector cross (Vector p) const
 
double dot (Vector p) const
 
double norm () const
 

Public Attributes

double x
 
double y
 
double z
 

Member Function Documentation

◆ cross()

Vector NEM::MTH::Vector::cross ( Vector  p) const
inline

Definition at line 62 of file convexContainer.H.

References x, y, and z.

Referenced by NEM::GEO::Face::normal().

63  {
64  return Vector{
65  y * p.z - p.y * z,
66  z * p.x - p.z * x,
67  x * p.y - p.x * y
68  };
69  }

◆ dot()

double NEM::MTH::Vector::dot ( Vector  p) const
inline

Definition at line 71 of file convexContainer.H.

References x, y, and z.

Referenced by NEM::GEO::convexContainer::isInConvexPoly().

72  {
73  return x * p.x + y * p.y + z * p.z;
74  }

◆ norm()

double NEM::MTH::Vector::norm ( ) const
inline

Definition at line 76 of file convexContainer.H.

Referenced by NEM::GEO::convexContainer::isInConvexPoly(), and NEM::GEO::Face::normal().

77  {
78  return std::sqrt(x*x + y*y + z*z);
79  }

◆ operator-()

Vector NEM::MTH::Vector::operator- ( Vector  p) const
inline

Definition at line 57 of file convexContainer.H.

References x, y, and z.

58  {
59  return Vector{x - p.x, y - p.y, z - p.z};
60  }

Member Data Documentation

◆ x

◆ y

◆ z


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