]> de.git.xonotic.org Git - xonotic/netradiant.git/blobdiff - contrib/bobtoolz/DWinding.h
reformat code! now the code is only ugly on the *inside*
[xonotic/netradiant.git] / contrib / bobtoolz / DWinding.h
index cb8ddda759197504eb5eeef5dd2970aae9b87172..61d8e3ff0bf4c2bdcb88b5793a6bc78f7e52c424 100644 (file)
 
 class DPlane;
 
-class DWinding
-{
+class DWinding {
 public:
-DWinding();
-virtual ~DWinding();
+    DWinding();
 
-void AllocWinding( int points );
+    virtual ~DWinding();
 
-bool ChopWinding( DPlane* chopPlane );
-bool ChopWindingInPlace( DPlane* chopPlane, vec_t ON_EPSILON );
-void ClipWindingEpsilon( DPlane* chopPlane, vec_t epsilon, DWinding** front, DWinding** back );
+    void AllocWinding(int points);
 
-void CheckWinding();
-void WindingCentre( vec3_t centre );
-void WindingBounds( vec3_t mins, vec3_t maxs );
-void RemoveColinearPoints();
+    bool ChopWinding(DPlane *chopPlane);
 
-DWinding* ReverseWinding();
-DWinding* CopyWinding();
-DPlane* WindingPlane();
+    bool ChopWindingInPlace(DPlane *chopPlane, vec_t ON_EPSILON);
 
-int WindingOnPlaneSide( vec3_t normal, vec_t dist );
+    void ClipWindingEpsilon(DPlane *chopPlane, vec_t epsilon, DWinding **front, DWinding **back);
 
-vec_t WindingArea();
+    void CheckWinding();
+
+    void WindingCentre(vec3_t centre);
+
+    void WindingBounds(vec3_t mins, vec3_t maxs);
+
+    void RemoveColinearPoints();
+
+    DWinding *ReverseWinding();
+
+    DWinding *CopyWinding();
+
+    DPlane *WindingPlane();
+
+    int WindingOnPlaneSide(vec3_t normal, vec_t dist);
+
+    vec_t WindingArea();
 
 //     members
-int numpoints;
-vec3_t* p;
-vec3_t clr;
+    int numpoints;
+    vec3_t *p;
+    vec3_t clr;
 };
 
 const int MAX_POINTS_ON_WINDING = 64;