15 #if !defined(KRATOS_NURBS_INTERVAL_H_INCLUDED )
16 #define KRATOS_NURBS_INTERVAL_H_INCLUDED
111 return mT0 +
GetDelta() * Parameter;
115 const double Parameter)
117 return A + (
B -
A) * Parameter;
146 if (ParameterT < min_parameter) {
147 ParameterT = min_parameter;
152 if (ParameterT > max_parameter) {
153 ParameterT = max_parameter;
179 rSerializer.
save(
"T0", mT0);
180 rSerializer.
save(
"T1", mT1);
185 rSerializer.
load(
"T0", mT0);
186 rSerializer.
load(
"T1", mT1);
Class for optimized use of intervals.
Definition: nurbs_interval.h:36
NurbsInterval(const std::pair< double, double > Bounds)
Definition: nurbs_interval.h:50
NurbsInterval()
Definition: nurbs_interval.h:40
double GetLength() const
Definition: nurbs_interval.h:95
double MaxParameter() const
Definition: nurbs_interval.h:85
NurbsInterval GetNormalizedInterval(const NurbsInterval Bounds) const
Definition: nurbs_interval.h:128
bool IsInside(double &ParameterT) const
Definition: nurbs_interval.h:143
static double GetParameterAtNormalized(const double A, const double B, const double Parameter)
Definition: nurbs_interval.h:114
void SetT1(const double Value)
Definition: nurbs_interval.h:75
double GetDelta() const
Definition: nurbs_interval.h:90
NurbsInterval(const double T0, const double T1)
Definition: nurbs_interval.h:44
NurbsInterval GetNormalizedInterval(const double T0, const double T1) const
Definition: nurbs_interval.h:120
double GetNormalizedAt(const double Parameter) const
Definition: nurbs_interval.h:104
double GetT1() const
Definition: nurbs_interval.h:70
double GetT0() const
Definition: nurbs_interval.h:60
void SetT0(const double Value)
Definition: nurbs_interval.h:65
double MinParameter() const
Definition: nurbs_interval.h:80
double GetParameterAtNormalized(const double Parameter) const
Definition: nurbs_interval.h:109
The serialization consists in storing the state of an object into a storage format like data file or ...
Definition: serializer.h:123
void load(std::string const &rTag, TDataType &rObject)
Definition: serializer.h:207
void save(std::string const &rTag, std::array< TDataType, TDataSize > const &rObject)
Definition: serializer.h:545
static double max(double a, double b)
Definition: GeometryFunctions.h:79
static double min(double a, double b)
Definition: GeometryFunctions.h:71
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
def load(f)
Definition: ode_solve.py:307
A
Definition: sensitivityMatrix.py:70
B
Definition: sensitivityMatrix.py:76