Skip to content

Commit 0d396cf

Browse files
author
Alexander Korotkov
committed
Fix some comments
1 parent aaf2d56 commit 0d396cf

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

gnomo.c

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@
77

88
#include <math.h>
99

10-
/* point gnomonic_proj(spoint spherical_point, spoint tangential_point) */
11-
1210
PG_FUNCTION_INFO_V1(gnomonic_proj);
11+
PG_FUNCTION_INFO_V1(gnomonic_inv);
12+
13+
/*
14+
* Direct gnomonic projection.
15+
*
16+
* point gnomonic_proj(spoint spherical_point, spoint tangential_point)
17+
*/
1318
Datum gnomonic_proj(PG_FUNCTION_ARGS)
1419
{
1520
Point* g = (Point*) palloc(sizeof(Point));
@@ -33,9 +38,11 @@ Datum gnomonic_proj(PG_FUNCTION_ARGS)
3338
PG_RETURN_POINTER(g);
3439
}
3540

36-
/* spoint gnomonic_inv(point plane_point, spoint tangential_point) */
37-
38-
PG_FUNCTION_INFO_V1(gnomonic_inv);
41+
/*
42+
* Inverse gnomonic projection.
43+
*
44+
* spoint gnomonic_inv(point plane_point, spoint tangential_point)
45+
*/
3946
Datum gnomonic_inv(PG_FUNCTION_ARGS)
4047
{
4148
SPoint* p = (SPoint*) palloc(sizeof(SPoint));

line.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,12 @@ int8 sphereline_circle_pos(const SLine *sl, const SCIRCLE *sc);
8989
bool sline_circle_touch(const SLine *sl, const SCIRCLE *sc);
9090

9191
/*
92-
* Returns the relationship between two lines \param l1 pointer to
93-
* first line \param l2 pointer to second line \return relationship as a
94-
* \link PGS_LINE_LINE_REL int8 value \endlink (\ref PGS_LINE_LINE_REL )
92+
* Returns the relationship between two lines as PGS_LINE_LINE_REL int8 value.
9593
*/
9694
int8 sline_sline_pos(const SLine *l1, const SLine *l2);
9795

9896
/*
99-
* Checks, whether the point is on line \param p pointer to given
100-
* point \param sl pointer to the line \return bool, true if point at line
97+
* Returns true if the point is on line.
10198
*/
10299
bool spoint_at_sline(const SPoint *p, const SLine *sl);
103100

0 commit comments

Comments
 (0)