14 #if !defined(KRATOS_PLANE_3D_H_INCLUDED)
15 #define KRATOS_PLANE_3D_H_INCLUDED
72 auto normal_length =
norm_2(mNormal);
74 mNormal /= normal_length;
85 auto normal_length =
norm_2(mNormal);
87 mNormal /= normal_length;
135 return "a 3D plane auxiliar class";
145 rOStream <<
"a 3D plane auxiliar class";
157 rOStream <<
"a 3D plane auxiliar class with:\n";
158 rOStream <<
"\t- distance to origin: " << mD <<
"\n";
159 rOStream <<
"\t- normal: (" << mNormal[0] <<
" , " << mNormal[1] <<
" , " << mNormal[2] <<
")";
200 rOStream << std::endl;
static T CrossProduct(const T &a, const T &b)
Performs the vector product of the two input vectors a,b.
Definition: math_utils.h:762
Definition: plane_3d.h:51
~Plane3D()
Destructor. Do nothing!!!
Definition: plane_3d.h:93
void PrintData(std::ostream &rOStream) const
Definition: plane_3d.h:155
Plane3D(array_1d< double, 3 > const &rNormal, const Point &rReferencePoint)
Definition: plane_3d.h:68
Plane3D(array_1d< double, 3 > const &rNormal, double DistanceToOrigin)
Definition: plane_3d.h:66
void PrintInfo(std::ostream &rOStream) const
Definition: plane_3d.h:143
double CalculateSignedDistance(Point const &rPoint)
Definition: plane_3d.h:123
Plane3D(const Point &Point1, const Point &Point2, const Point &Point3)
Definition: plane_3d.h:79
double GetDistanceToOrigin()
Definition: plane_3d.h:115
KRATOS_CLASS_POINTER_DEFINITION(Plane3D)
Pointer definition of Point2D.
array_1d< double, 3 > const & GetNormal()
Definition: plane_3d.h:107
std::string Info() const
Definition: plane_3d.h:133
Point class.
Definition: point.h:59
#define KRATOS_DEBUG_CHECK_GREATER(a, b)
Definition: checks.h:226
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
TExpressionType::data_type norm_2(AMatrix::MatrixExpression< TExpressionType, TCategory > const &TheExpression)
Definition: amatrix_interface.h:625
TExpression1Type::data_type inner_prod(AMatrix::MatrixExpression< TExpression1Type, TCategory1 > const &First, AMatrix::MatrixExpression< TExpression2Type, TCategory2 > const &Second)
Definition: amatrix_interface.h:592
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432