Skip to content

Commit 9a38393

Browse files
committed
some comment fixes for polygon.c
1 parent 1ef4f7c commit 9a38393

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

polygon.c

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,10 @@ spherepoly_center(Vector3D *v, const SPOLY *poly)
9393
}
9494

9595

96-
/*
97-
* Checks crossing of line segments. "poly" is the pointer to a polygon.
98-
* Returns true if crossing.
99-
*/
96+
/*
97+
* Checks crossing of line segments. "poly" is the pointer to a polygon.
98+
* Returns true if crossing.
99+
*/
100100
static bool
101101
spherepoly_check(const SPOLY *poly)
102102
{
@@ -153,11 +153,11 @@ spherepoly_check(const SPOLY *poly)
153153
}
154154

155155

156-
/*
157-
* Converts an array of spherical points to SPOLY. "arr" is the pointer
158-
* to the array of spherical point,s "nelem" is the number of the
159-
* elements. Returns the pointer to the created spherical polygon.
160-
*/
156+
/*
157+
* Converts an array of spherical points to SPOLY. "arr" is the pointer
158+
* to the array of spherical point,s "nelem" is the number of the
159+
* elements. Returns the pointer to the created spherical polygon.
160+
*/
161161
static SPOLY *
162162
spherepoly_from_array(SPoint *arr, int32 nelem)
163163
{
@@ -246,11 +246,11 @@ spherepoly_from_array(SPoint *arr, int32 nelem)
246246
}
247247

248248

249-
/*
250-
* Performs a transform of a polygon using an Euler transformation.
251-
* "se" is the pointer to the Euler transformation, "in" is the pointer
252-
* to the polygon, "out" is the pointer to the transformed polygon.
253-
*/
249+
/*
250+
* Performs a transform of a polygon using an Euler transformation.
251+
* "se" is the pointer to the Euler transformation, "in" is the pointer
252+
* to the polygon, "out" is the pointer to the transformed polygon.
253+
*/
254254
static void
255255
euler_spoly_trans(SPOLY *out, const SPOLY *in, const SEuler *se)
256256
{
@@ -263,11 +263,11 @@ euler_spoly_trans(SPOLY *out, const SPOLY *in, const SEuler *se)
263263
}
264264

265265

266-
/*
267-
* Returns the relationship between polygon and circle as an int8 value.
268-
* "circ" is the pointer to the circle, "poly" is the pointer to the
269-
* polygon.
270-
*/
266+
/*
267+
* Returns the relationship between polygon and circle as PGS_CIRCLE_POLY_REL
268+
* int8 value. "circ" is the pointer to the circle, "poly" is the pointer to the
269+
* polygon.
270+
*/
271271
static int8
272272
poly_circle_pos(const SPOLY *poly, const SCIRCLE *circ)
273273
{
@@ -332,11 +332,11 @@ poly_circle_pos(const SPOLY *poly, const SCIRCLE *circ)
332332
}
333333

334334

335-
/*
336-
* Returns the relationship between a polygon and an ellipse
337-
* as an int8 value. "ell" is the pointer to the ellipse,
338-
* "poly" is the pointer to the polygon.
339-
*/
335+
/*
336+
* Returns the relationship between a polygon and an ellipse
337+
* as PGS_ELLIPSE_POLY_REL int8 value. "ell" is the pointer
338+
* to the ellipse, "poly" is the pointer to the polygon.
339+
*/
340340
static int8
341341
poly_ellipse_pos(const SPOLY *poly, const SELLIPSE *ell)
342342
{
@@ -423,11 +423,11 @@ poly_ellipse_pos(const SPOLY *poly, const SELLIPSE *ell)
423423
}
424424

425425

426-
/*
427-
* Returns the relationship between two polygons as an int8 value.
428-
* "p1" is the pointer to the first polygon, "p2" is the pointer
429-
* to the second polygon. If "recheck" is true, swaps p1 and p2.
430-
*/
426+
/*
427+
* Returns the relationship between two polygons as PGS_POLY_REL int8 value.
428+
* "p1" is the pointer to the first polygon, "p2" is the pointer
429+
* to the second polygon. If "recheck" is true, swaps p1 and p2.
430+
*/
431431
static int8
432432
poly_poly_pos(const SPOLY *p1, const SPOLY *p2, bool recheck)
433433
{
@@ -694,10 +694,10 @@ spoly_contains_point(const SPOLY *pg, const SPoint *sp)
694694
return res;
695695
}
696696

697-
/*
698-
* Returns the relationship between polygon and line. "line" is
699-
* the pointer to line, "poly" is the pointer to polygon.
700-
*/
697+
/*
698+
* Returns the relationship between polygon and line as PGS_LINE_POLY_REL
699+
* int8 value. "line" is the pointer to line, "poly" is the pointer to polygon.
700+
*/
701701
int8
702702
poly_line_pos(const SPOLY *poly, const SLine *line)
703703
{

0 commit comments

Comments
 (0)