24CSectionPowerEllipse::CSectionPowerEllipse(
double dWidth,
double dHeight,
double dPower,
double dXOffset)
49 Element.Attribute(
"Width", &
m_dWidth);
51 Element.Attribute(
"Power", &
m_dPower);
67 if ( t <= 0.25 || t >= 0.75 )
96 else if ( t > 0.25 && t <= 0.5 )
100 else if ( t > 0.5 && t < 0.75 )
Abstract base class respresenting a yarn cross-section.
virtual void PopulateTiXmlElement(TiXmlElement &Element, OUTPUT_TYPE OutputType) const
Used for saving data to XML.
virtual string GetType() const =0
Derived class should return the class name.
string GetType() const
Derived class should return the class name.
string GetDefaultName() const
Get the default name to assign to a section.
bool operator==(const CSection &CompareMe) const
Overloaded equality operator to determine if two sections are the same.
CSectionPowerEllipse(double dWidth, double dHeight, double dPower, double dXOffset=0.0)
double GetTangent(double t) const
void PopulateTiXmlElement(TiXmlElement &Element, OUTPUT_TYPE OutputType) const
Used for saving data to XML.
XY GetPoint(double t) const
Get a point lying on the perimeter correspending to parametric value t.
~CSectionPowerEllipse(void)
Namespace containing a series of customised math operations not found in the standard c++ library.
std::string stringify(const T &x, int iPrecision=12, bool bScientific=true)
Function to convert a value (e.g. int, double, etc...) to a string.
Struct for representing points in 2D space.