@@ -53,14 +53,17 @@ PG_FUNCTION_INFO_V1(spherepath_add_points_finalize);
53
53
54
54
55
55
/*
56
- * ! \brief Converts an array of spherical points to SPATH \param arr pointer
57
- * to array of spherical points \param nelem count of elements \return
58
- * pointer to created spherical polygon
56
+ * Converts an array of spherical points to SPATH.
57
+ *
58
+ * arr - pointer to the array of spherical points
59
+ * nelem - count of elements
60
+ *
61
+ * Returns pointer to created spherical polygon.
59
62
*/
60
63
static SPATH *
61
64
spherepath_from_array (SPoint * arr , int32 nelem )
62
65
{
63
- SPATH * path = NULL ;
66
+ SPATH * path = NULL ;
64
67
65
68
if (nelem < 2 )
66
69
{
@@ -89,7 +92,9 @@ spherepath_from_array(SPoint *arr, int32 nelem)
89
92
{
90
93
if (i < (nelem - 2 ))
91
94
{
92
- memmove ((void * ) & arr [i + 1 ], (void * ) & arr [i + 2 ], (nelem - i - 2 ) * sizeof (SPoint ));
95
+ memmove ((void * ) & arr [i + 1 ],
96
+ (void * ) & arr [i + 2 ],
97
+ (nelem - i - 2 ) * sizeof (SPoint ));
93
98
}
94
99
nelem -- ;
95
100
continue ;
@@ -127,14 +132,18 @@ spherepath_from_array(SPoint *arr, int32 nelem)
127
132
}
128
133
129
134
/*
130
- * ! \brief Does an Euler transformation on a path \param out pointer to
131
- * result path \param in pointer to input path \param se pointer to Euler
132
- * transformation \return pointer to result path
135
+ * Performs an Euler transformation on a path.
136
+ *
137
+ * out - pointer to the result path
138
+ * in - pointer to the input path
139
+ * se - pointer to the Euler transformation
140
+ *
141
+ * Returns the pointer to the result path.
133
142
*/
134
143
static void
135
144
euler_spath_trans (SPATH * out , const SPATH * in , const SEuler * se )
136
145
{
137
- int32 i ;
146
+ int32 i ;
138
147
139
148
out -> size = in -> size ;
140
149
out -> npts = in -> npts ;
@@ -143,9 +152,11 @@ euler_spath_trans(SPATH *out, const SPATH *in, const SEuler *se)
143
152
}
144
153
145
154
/*
146
- * ! \brief Returns the relationship between path and circle \param path
147
- * pointer to path \param circ pointer to circle \return relationship as a
148
- * \link PGS_CIRCLE_PATH_REL int8 value \endlink (\ref PGS_CIRCLE_PATH_REL )
155
+ * Returns the relationship between a path and a circle as
156
+ * PGS_CIRCLE_PATH_REL int8 value.
157
+ *
158
+ * path - pointer to the path
159
+ * circ - pointer to the circle
149
160
*/
150
161
static int8
151
162
path_circle_pos (const SPATH * path , const SCIRCLE * circ )
@@ -204,8 +215,12 @@ path_circle_pos(const SPATH *path, const SCIRCLE *circ)
204
215
205
216
206
217
/*
207
- * ! \brief Checks, whether path and line are overlapping \param line pointer
208
- * to a line \param path pointer to a path \return true, if overlapping
218
+ * Checks whether a path and a line are overlapping.
219
+ *
220
+ * line - pointer to the line
221
+ * path - pointer to the path
222
+ *
223
+ * Returns true if overlapping.
209
224
*/
210
225
static bool
211
226
path_line_overlap (const SPATH * path , const SLine * line )
@@ -229,10 +244,11 @@ path_line_overlap(const SPATH *path, const SLine *line)
229
244
230
245
231
246
/*
232
- * ! \brief Returns the relationship between path and circle \param path
233
- * pointer to path \param ell pointer to ellipse \return relationship as a
234
- * \link PGS_ELLIPSE_PATH_REL int8 value \endlink (\ref PGS_ELLIPSE_PATH_REL
235
- * )
247
+ * Returns the relationship between a path and a circle as
248
+ * PGS_ELLIPSE_PATH_REL int8 value.
249
+ *
250
+ * path - pointer to the path
251
+ * ell - pointer to the ellipse
236
252
*/
237
253
static int8
238
254
path_ellipse_pos (const SPATH * path , const SELLIPSE * ell )
@@ -310,9 +326,12 @@ path_ellipse_pos(const SPATH *path, const SELLIPSE *ell)
310
326
311
327
312
328
/*
313
- * ! \brief Checks, whether two pathes are overlapping \param path1 pointer
314
- * to first path \param path2 pointer to second path \return true, if
315
- * overlapping
329
+ * Checks whether two pathes are overlapping.
330
+ *
331
+ * path1 - pointer to the first path
332
+ * path2 - pointer to the second path
333
+ *
334
+ * Returns true if overlapping.
316
335
*/
317
336
static bool
318
337
path_overlap (const SPATH * path1 , const SPATH * path2 )
@@ -334,9 +353,11 @@ path_overlap(const SPATH *path1, const SPATH *path2)
334
353
335
354
336
355
/*
337
- * ! \brief Returns the relationship between path and polygon \param path
338
- * pointer to path \param poly pointer to polygon \return relationship as a
339
- * \link PGS_POLY_PATH_REL int8 value \endlink (\ref PGS_POLY_PATH_REL )
356
+ * Returns the relationship between a path and a polygon as
357
+ * PGS_POLY_PATH_REL int8 value.
358
+ *
359
+ * path - pointer to the path
360
+ * poly - pointer to the polygon
340
361
*/
341
362
static int8
342
363
path_poly_pos (const SPATH * path , const SPOLY * poly )
@@ -378,9 +399,15 @@ path_poly_pos(const SPATH *path, const SPOLY *poly)
378
399
379
400
380
401
/*
381
- * ! \brief Returns the i-th point of a path \param sp pointer to result
382
- * point \param path pointer to path \param i number of point \return
383
- * pointer to result point \see spath_point ( SPoint * , SPATH *, float8 )
402
+ * Returns the i-th point of a path.
403
+ *
404
+ * sp - pointer to the result point
405
+ * path - pointer to the path
406
+ * i - number of the point
407
+ *
408
+ * Returns pointer to result point.
409
+ *
410
+ * See spath_point(SPoint * , SPATH *, float8)
384
411
*/
385
412
static bool
386
413
spath_get_point (SPoint * sp , const SPATH * path , int32 i )
@@ -394,10 +421,16 @@ spath_get_point(SPoint *sp, const SPATH *path, int32 i)
394
421
}
395
422
396
423
/*
397
- * ! This function interpolates between points. \brief Returns the f-th point
398
- * of a path \param sp pointer to result point \param path pointer to path
399
- * \param f "number" of point \return pointer to result point \see
400
- * spherepath_point(PG_FUNCTION_ARGS)
424
+ * This function interpolates between points. Returns the f-th point
425
+ * of a path.
426
+ *
427
+ * sp - pointer to the result point
428
+ * path - pointer to the path
429
+ * f - 'number' of the point
430
+ *
431
+ * Returns pointer to result point.
432
+ *
433
+ * See spherepath_point(PG_FUNCTION_ARGS)
401
434
*/
402
435
static bool
403
436
spath_point (SPoint * sp , const SPATH * path , float8 f )
@@ -426,8 +459,10 @@ spath_point(SPoint *sp, const SPATH *path, float8 f)
426
459
}
427
460
428
461
/*
429
- * ! \brief Checks whether two pathes are equal \param p1 pointer to first
430
- * path \param p2 pointer to secondpath \return true, if equal
462
+ * Checks whether two pathes are equal.
463
+ *
464
+ * p1 - pointer to the first path
465
+ * p2 - pointer to the second path
431
466
*/
432
467
bool
433
468
spath_eq (const SPATH * p1 , const SPATH * p2 )
0 commit comments