TexGen
Public Member Functions | Public Attributes | List of all members
TexGen::XY Struct Reference

Struct for representing points in 2D space. More...

#include <mymath.h>

Public Member Functions

 XY ()
 Set all coordinates to 0 as default constructor. More...
 
 XY (double X, double Y)
 Set coordinates to those specified in the constructor. More...
 
 XY (double Coords[2])
 Set coordinates to those specified in the constructor. More...
 
bool operator== (const XY &right) const
 Overload to see if two XY coordinates are the same. More...
 
bool operator! () const
 Check if all the coordinates are 0. More...
 
 operator bool () const
 
double & operator[] (int i)
 
const double & operator[] (int i) const
 
XY operator- ()
 Reverse all coordinates. More...
 

Public Attributes

double x
 
double y
 

Detailed Description

Struct for representing points in 2D space.

Definition at line 102 of file mymath.h.

Constructor & Destructor Documentation

◆ XY() [1/3]

TexGen::XY::XY ( )
inline

Set all coordinates to 0 as default constructor.

Definition at line 106 of file mymath.h.

References x, and y.

◆ XY() [2/3]

TexGen::XY::XY ( double  X,
double  Y 
)
inline

Set coordinates to those specified in the constructor.

Definition at line 108 of file mymath.h.

References x, and y.

◆ XY() [3/3]

TexGen::XY::XY ( double  Coords[2])
inline

Set coordinates to those specified in the constructor.

Definition at line 110 of file mymath.h.

References x, and y.

Member Function Documentation

◆ operator bool()

TexGen::XY::operator bool ( ) const
inline

Definition at line 121 of file mymath.h.

References x, and y.

◆ operator!()

bool TexGen::XY::operator! ( ) const
inline

Check if all the coordinates are 0.

Definition at line 117 of file mymath.h.

References x, and y.

◆ operator-()

XY TexGen::XY::operator- ( )
inline

Reverse all coordinates.

Definition at line 135 of file mymath.h.

References x, and y.

◆ operator==()

bool TexGen::XY::operator== ( const XY right) const
inline

Overload to see if two XY coordinates are the same.

Definition at line 112 of file mymath.h.

References x, and y.

◆ operator[]() [1/2]

double & TexGen::XY::operator[] ( int  i)
inline

Definition at line 125 of file mymath.h.

References x.

◆ operator[]() [2/2]

const double & TexGen::XY::operator[] ( int  i) const
inline

Definition at line 129 of file mymath.h.

References x.

Member Data Documentation

◆ x

double TexGen::XY::x

Definition at line 104 of file mymath.h.

Referenced by TexGen::CTextileOffsetAngleInterlock::AddBinderNodes(), TexGen::CTextileOrthogonal::AddBinderNodes(), TexGen::CTextileLayerToLayer::AddBinderNodes(), TexGen::CTextileOrthogonal::AddWeftNodes(), TexGen::CTextile3DWeave::AddWeftNodes(), TexGen::CAdjustMeshInterference::AdjustSectionMeshes(), TexGen::CShearedTextileWeave2D::BuildTextile(), TexGen::CShearedTextileWeave2D::CalculateModifiers(), TexGen::CSectionMeshRectangleSection::CalculateNumberofLayers(), TexGen::CSectionMeshRectangular::CalculateNumberofLayers(), TexGen::CYarnSectionInterp::CalculateNumberofLayers(), TexGen::CShearedVoxelMesh::CalculateVoxelSizes(), TexGen::CMeshDomainPlane::Convert3DTo2DCoordinates(), TexGen::CSectionMeshRectangleSection::CreateMesh(), TexGen::CSectionMeshRectangular::CreateMesh(), TexGen::CSectionMeshRectangular::CreateSingleLayerMesh(), TexGen::CSectionBezier::CSectionBezier(), TexGen::CSectionPolygon::CSectionPolygon(), TexGen::CTextileDeformer::DeformTextile(), TexGen::DotProduct(), TexGen::CYarn::FindClosestEdgeDistance(), TexGen::CShearedTextileWeave2D::Get2DRefPoint(), TexGen::GetBarycentricCoordinates(), TexGen::GetClosestPoint(), TexGen::CElementTriBending::GetDMatrix(), TexGen::CElementTriTension::GetDMatrix(), TexGen::CPrismVoxelMesh::GetElementMap(), TexGen::CTextileOrthogonal::GetHybridWidth(), TexGen::CYarnSectionInterp::GetInterpedSectionMesh(), TexGen::CTextileLayered::GetLayerRepeats(), TexGen::GetLength(), TexGen::GetLengthSquared(), TexGen::CSectionLenticular::GetPoint(), TexGen::CSectionRotated::GetPoint(), TexGen::CSectionScaled::GetPoint(), TexGen::CSlaveNode::GetPointOnSection(), TexGen::CSectionRectangle::GetPoints(), TexGen::CDomainPrism::GetPolygonLimits(), TexGen::CFibreDistribution1DQuad::GetVolumeFraction(), TexGen::CShearedTextileWeave2D::GetYSpacings(), TexGen::CTextile3DWeave::InsertBinderNode(), TexGen::CTextile3DWeave::InsertWeftNode(), TexGen::CYarnSectionInterp::InterpolatePoints(), TexGen::LineLineIntersect2D(), TexGen::Max(), TexGen::CTextileLayered::MaxNestLayers(), TexGen::Min(), TexGen::CTextileLayered::NestLayers(), operator bool(), operator!(), TexGen::operator*(), TexGen::operator*=(), TexGen::operator+(), TexGen::operator+=(), operator-(), TexGen::operator-(), TexGen::operator-=(), TexGen::operator/(), TexGen::operator/=(), TexGen::operator<<(), operator==(), TexGen::operator>>(), operator[](), TexGen::CShearedVoxelMesh::OutputNodes(), TexGen::PointInside(), TexGen::CYarn::PointInsideYarn(), TexGen::CShearedTextileWeave2D::RotatePoint(), TexGen::CMeshDomainPlane::Triangulate(), TexGen::CMeshData< T >::WriteVTKDataElement(), and XY().

◆ y

double TexGen::XY::y

Definition at line 104 of file mymath.h.

Referenced by TexGen::CTextileOffsetAngleInterlock::AddBinderNodes(), TexGen::CTextileOrthogonal::AddBinderNodes(), TexGen::CTextileLayerToLayer::AddBinderNodes(), TexGen::CTextileOrthogonal::AddWeftNodes(), TexGen::CTextile3DWeave::AddWeftNodes(), TexGen::CAdjustMeshInterference::AdjustSectionMeshes(), TexGen::CShearedTextileWeave2D::BuildTextile(), TexGen::CShearedTextileWeave2D::CalculateModifiers(), TexGen::CSectionMeshRectangleSection::CalculateNumberofLayers(), TexGen::CSectionMeshRectangular::CalculateNumberofLayers(), TexGen::CYarnSectionInterp::CalculateNumberofLayers(), TexGen::CShearedVoxelMesh::CalculateVoxelSizes(), TexGen::CMeshDomainPlane::Convert3DTo2DCoordinates(), TexGen::CSectionMeshRectangleSection::CreateMesh(), TexGen::CSectionMeshRectangular::CreateMesh(), TexGen::CSectionMeshRectangular::CreateSingleLayerMesh(), TexGen::CSectionBezier::CSectionBezier(), TexGen::CSectionPolygon::CSectionPolygon(), TexGen::CTextileDeformer::DeformTextile(), TexGen::DotProduct(), TexGen::CYarn::FindClosestEdgeDistance(), TexGen::GetBarycentricCoordinates(), TexGen::GetClosestPoint(), TexGen::CShearedTextileWeave2D::GetDefaultDomain(), TexGen::CElementTriBending::GetDMatrix(), TexGen::CElementTriTension::GetDMatrix(), TexGen::CPrismVoxelMesh::GetElementMap(), TexGen::CTextileOrthogonal::GetHybridHeight(), TexGen::CYarnSectionInterp::GetInterpedSectionMesh(), TexGen::CTextileLayered::GetLayerRepeats(), TexGen::GetLength(), TexGen::GetLengthSquared(), TexGen::CSectionLenticular::GetPoint(), TexGen::CSectionRotated::GetPoint(), TexGen::CSectionScaled::GetPoint(), TexGen::CSlaveNode::GetPointOnSection(), TexGen::CSectionRectangle::GetPoints(), TexGen::CDomainPrism::GetPolygonLimits(), TexGen::CShearedTextileWeave2D::GetYSpacings(), TexGen::CTextile3DWeave::InsertBinderNode(), TexGen::CTextile3DWeave::InsertWeftNode(), TexGen::CYarnSectionInterp::InterpolatePoints(), TexGen::LineLineIntersect2D(), TexGen::Max(), TexGen::CTextileLayered::MaxNestLayers(), TexGen::Min(), TexGen::CShearedTextileWeave2D::ModifyPoints(), TexGen::CShearedTextileWeave2D::ModifySection(), TexGen::CTextileLayered::NestLayers(), operator bool(), operator!(), TexGen::operator*(), TexGen::operator*=(), TexGen::operator+(), TexGen::operator+=(), operator-(), TexGen::operator-(), TexGen::operator-=(), TexGen::operator/(), TexGen::operator/=(), TexGen::operator<<(), operator==(), TexGen::operator>>(), TexGen::CShearedVoxelMesh::OutputNodes(), TexGen::PointInside(), TexGen::CYarn::PointInsideYarn(), TexGen::CShearedTextileWeave2D::RotatePoint(), TexGen::CMeshDomainPlane::Triangulate(), TexGen::CMeshData< T >::WriteVTKDataElement(), and XY().


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