@@ -93,10 +93,10 @@ spherepoly_center(Vector3D *v, const SPOLY *poly)
93
93
}
94
94
95
95
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
+ */
100
100
static bool
101
101
spherepoly_check (const SPOLY * poly )
102
102
{
@@ -153,11 +153,11 @@ spherepoly_check(const SPOLY *poly)
153
153
}
154
154
155
155
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
+ */
161
161
static SPOLY *
162
162
spherepoly_from_array (SPoint * arr , int32 nelem )
163
163
{
@@ -246,11 +246,11 @@ spherepoly_from_array(SPoint *arr, int32 nelem)
246
246
}
247
247
248
248
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
+ */
254
254
static void
255
255
euler_spoly_trans (SPOLY * out , const SPOLY * in , const SEuler * se )
256
256
{
@@ -263,11 +263,11 @@ euler_spoly_trans(SPOLY *out, const SPOLY *in, const SEuler *se)
263
263
}
264
264
265
265
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
+ */
271
271
static int8
272
272
poly_circle_pos (const SPOLY * poly , const SCIRCLE * circ )
273
273
{
@@ -332,11 +332,11 @@ poly_circle_pos(const SPOLY *poly, const SCIRCLE *circ)
332
332
}
333
333
334
334
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
+ */
340
340
static int8
341
341
poly_ellipse_pos (const SPOLY * poly , const SELLIPSE * ell )
342
342
{
@@ -423,11 +423,11 @@ poly_ellipse_pos(const SPOLY *poly, const SELLIPSE *ell)
423
423
}
424
424
425
425
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
+ */
431
431
static int8
432
432
poly_poly_pos (const SPOLY * p1 , const SPOLY * p2 , bool recheck )
433
433
{
@@ -694,10 +694,10 @@ spoly_contains_point(const SPOLY *pg, const SPoint *sp)
694
694
return res ;
695
695
}
696
696
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
+ */
701
701
int8
702
702
poly_line_pos (const SPOLY * poly , const SLine * line )
703
703
{
0 commit comments