@@ -53,14 +53,17 @@ PG_FUNCTION_INFO_V1(spherepath_add_points_finalize);
5353
5454
5555/*
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.
5962 */
6063static SPATH *
6164spherepath_from_array (SPoint * arr , int32 nelem )
6265{
63- SPATH * path = NULL ;
66+ SPATH * path = NULL ;
6467
6568 if (nelem < 2 )
6669 {
@@ -89,7 +92,9 @@ spherepath_from_array(SPoint *arr, int32 nelem)
8992 {
9093 if (i < (nelem - 2 ))
9194 {
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 ));
9398 }
9499 nelem -- ;
95100 continue ;
@@ -127,14 +132,18 @@ spherepath_from_array(SPoint *arr, int32 nelem)
127132}
128133
129134/*
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.
133142 */
134143static void
135144euler_spath_trans (SPATH * out , const SPATH * in , const SEuler * se )
136145{
137- int32 i ;
146+ int32 i ;
138147
139148 out -> size = in -> size ;
140149 out -> npts = in -> npts ;
@@ -143,9 +152,11 @@ euler_spath_trans(SPATH *out, const SPATH *in, const SEuler *se)
143152}
144153
145154/*
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
149160 */
150161static int8
151162path_circle_pos (const SPATH * path , const SCIRCLE * circ )
@@ -204,8 +215,12 @@ path_circle_pos(const SPATH *path, const SCIRCLE *circ)
204215
205216
206217/*
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.
209224 */
210225static bool
211226path_line_overlap (const SPATH * path , const SLine * line )
@@ -229,10 +244,11 @@ path_line_overlap(const SPATH *path, const SLine *line)
229244
230245
231246/*
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
236252 */
237253static int8
238254path_ellipse_pos (const SPATH * path , const SELLIPSE * ell )
@@ -310,9 +326,12 @@ path_ellipse_pos(const SPATH *path, const SELLIPSE *ell)
310326
311327
312328/*
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.
316335 */
317336static bool
318337path_overlap (const SPATH * path1 , const SPATH * path2 )
@@ -334,9 +353,11 @@ path_overlap(const SPATH *path1, const SPATH *path2)
334353
335354
336355/*
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
340361 */
341362static int8
342363path_poly_pos (const SPATH * path , const SPOLY * poly )
@@ -378,9 +399,15 @@ path_poly_pos(const SPATH *path, const SPOLY *poly)
378399
379400
380401 /*
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)
384411 */
385412static bool
386413spath_get_point (SPoint * sp , const SPATH * path , int32 i )
@@ -394,10 +421,16 @@ spath_get_point(SPoint *sp, const SPATH *path, int32 i)
394421}
395422
396423 /*
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)
401434 */
402435static bool
403436spath_point (SPoint * sp , const SPATH * path , float8 f )
@@ -426,8 +459,10 @@ spath_point(SPoint *sp, const SPATH *path, float8 f)
426459}
427460
428461/*
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
431466 */
432467bool
433468spath_eq (const SPATH * p1 , const SPATH * p2 )
0 commit comments