60 static constexpr std::size_t mDimension = 3;
111 template <
class TVectorType>
122 this->
operator[](
i) = rOtherCoordinates[
i];
141 return std::equal(this->
begin(), this->
end(), rOther.
begin());
157 return (std::pow(diff_vector[0], 2) + std::pow(diff_vector[1], 2) + std::pow(diff_vector[2], 2));
230 virtual std::string
Info()
const
238 rOStream << this->
Info();
256 void SetAllCoordinates(
double const &Value =
double())
259 this->
operator()(
i) = Value;
268 virtual void save(
Serializer &rSerializer)
const
Point class.
Definition: point.h:59
double & Z()
Definition: point.h:210
CoordinatesArrayType const & Coordinates() const
Definition: point.h:215
Point(double NewX, double NewY=0, double NewZ=0)
3d constructor.
Definition: point.h:92
std::size_t IndexType
Definition: point.h:79
static constexpr IndexType Dimension()
Definition: point.h:175
KRATOS_CLASS_POINTER_DEFINITION(Point)
Pointer definition of Point.
double Distance(const Point &rOtherPoint) const
This method computes the distance between this point and another one.
Definition: point.h:166
array_1d< double, mDimension > BaseType
Definition: point.h:73
double & Y()
Definition: point.h:204
BaseType CoordinatesArrayType
Definition: point.h:75
virtual std::string Info() const
Turn back information as a string.
Definition: point.h:230
bool operator==(const Point &rOther) const
Definition: point.h:139
Point & operator=(const Point &rOther)
Assignment operator.
Definition: point.h:133
double & X()
Definition: point.h:198
Point()
Default constructor.
Definition: point.h:86
virtual ~Point()
Destructor.
Definition: point.h:126
Point(std::vector< double > const &rOtherCoordinates)
Definition: point.h:117
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: point.h:242
double Y() const
Definition: point.h:187
std::size_t SizeType
Definition: point.h:77
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: point.h:236
Point(Point const &rOtherPoint)
Definition: point.h:101
double SquaredDistance(const Point &rOtherPoint) const
This method computes the distance between this point and another one (squared)
Definition: point.h:154
Point(vector_expression< TVectorType > const &rOtherCoordinates)
Definition: point.h:112
CoordinatesArrayType & Coordinates()
Definition: point.h:220
Point(CoordinatesArrayType const &rOtherCoordinates)
Definition: point.h:106
double Z() const
Definition: point.h:193
double X() const
Definition: point.h:181
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
void load_base(std::string const &rTag, TDataType &rObject)
Definition: serializer.h:791
void save_base(std::string const &rTag, std::vector< TDataType > const &rObject)
Definition: serializer.h:820
Short class definition.
Definition: array_1d.h:61
BOOST_UBLAS_INLINE array_1d & operator=(const array_1d &v)
Definition: array_1d.h:187
BOOST_UBLAS_INLINE const_reference operator()(size_type i) const
Definition: array_1d.h:160
BOOST_UBLAS_INLINE const_reference operator[](size_type i) const
Definition: array_1d.h:173
BOOST_UBLAS_INLINE size_type size() const
Definition: array_1d.h:370
BOOST_UBLAS_INLINE const_iterator end() const
Definition: array_1d.h:611
BOOST_UBLAS_INLINE const_iterator begin() const
Definition: array_1d.h:606
std::size_t IndexType
The definition of the index type.
Definition: key_hash.h:35
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
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
AMatrix::MatrixExpression< TExpressionType, AMatrix::row_major_access > vector_expression
Definition: amatrix_interface.h:490
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432
def load(f)
Definition: ode_solve.py:307
integer i
Definition: TensorModule.f:17