File tree Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Expand file tree Collapse file tree 2 files changed +14
-10
lines changed Original file line number Diff line number Diff line change 7
7
8
8
#include <math.h>
9
9
10
- /* point gnomonic_proj(spoint spherical_point, spoint tangential_point) */
11
-
12
10
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
+ */
13
18
Datum gnomonic_proj (PG_FUNCTION_ARGS )
14
19
{
15
20
Point * g = (Point * ) palloc (sizeof (Point ));
@@ -33,9 +38,11 @@ Datum gnomonic_proj(PG_FUNCTION_ARGS)
33
38
PG_RETURN_POINTER (g );
34
39
}
35
40
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
+ */
39
46
Datum gnomonic_inv (PG_FUNCTION_ARGS )
40
47
{
41
48
SPoint * p = (SPoint * ) palloc (sizeof (SPoint ));
Original file line number Diff line number Diff line change @@ -89,15 +89,12 @@ int8 sphereline_circle_pos(const SLine *sl, const SCIRCLE *sc);
89
89
bool sline_circle_touch (const SLine * sl , const SCIRCLE * sc );
90
90
91
91
/*
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.
95
93
*/
96
94
int8 sline_sline_pos (const SLine * l1 , const SLine * l2 );
97
95
98
96
/*
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.
101
98
*/
102
99
bool spoint_at_sline (const SPoint * p , const SLine * sl );
103
100
You can’t perform that action at this time.
0 commit comments