Stellarium  0.17.0
Public Types | Public Member Functions | Data Fields
SPolygon Class Reference

Public Types

enum  Order { CCW = 0, CW }
 

Public Member Functions

 SPolygon (const Vec3f &c0, const Vec3f &c1, const Vec3f &c2, const Vec3f &c3)
 Construct a polygon from 4 corner vertices.
 
void intersect (const Plane &p, QVector< Vec3f > &intersectionPoints)
 Intersect by specified plane and store the intersection points.
 
void reverseOrder ()
 Reverse the vertices order.
 
void addUniqueVert (const Vec3f &v)
 Add the vertex v to vertices if it is not already present.
 
void render ()
 

Data Fields

QVector< Vec3fvertices
 Holds all vertices of this polygon.