1 #ifndef HELPERFUNCTIONS_H 2 #define HELPERFUNCTIONS_H 18 bool isSubset(vector<int> & a, vector<int> & b);
26 #endif // HELPERFUNCTIONS_H
int verticePresent(vector< Vertice > &a, Vertice b)
Checks if a vertice is present in a vector of vertices.
Definition: helperfunctions.cpp:204
Vertice transform(Vertice v_in, double Xrot, double Yrot, double Zrot, double Xoff, double Yoff, double Zoff)
Transforms a vertice (rotation and offset) using matrix multiplication and returns a new Vertice obje...
Definition: helperfunctions.cpp:14
bool isSubset(vector< int > &a, vector< int > &b)
Definition: helperfunctions.cpp:196
Definition: basicComponents.h:71
bool is_inside(Vertice v, set< Edge > edgeSet)
Checks whether a vertice is inside (in 2d) of a face formed by an edge loop.
Definition: helperfunctions.cpp:154
Definition: complexComponents.h:24
Definition: basicComponents.h:9
pair< int, Vertice > get_intersection(Edge a, Edge b)
Finds intersection of two edges (line segments) and also returns error if intersection does not exist...
Definition: helperfunctions.cpp:51
WireFrame modifyWireframe(WireFrame wf, Vertice v)
Takes a wireframe and subtracts coordinates of v from all its edge vertices.
Definition: helperfunctions.cpp:218