aboutsummaryrefslogtreecommitdiffstats
path: root/libred_solar_elevation.3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libred_solar_elevation.313
1 files changed, 8 insertions, 5 deletions
diff --git a/libred_solar_elevation.3 b/libred_solar_elevation.3
index 9bb4b0a..41d96e0 100644
--- a/libred_solar_elevation.3
+++ b/libred_solar_elevation.3
@@ -5,11 +5,12 @@ libred_solar_elevation \- Calculate the Sun's apparent elevation
.nf
#include <libred.h>
-int \fBlibred_solar_elevation\fP(double \fIlatitude\fP, double \fIlongitude\fP, double *\felevation\fP);
+int \fBlibred_solar_elevation\fP(double \fIlatitude\fP, double \fIlongitude\fP, double *\fIelevation\fP);
.fi
.PP
Link with
-.IR -lred .
+.I -lred
+.IR -lm .
.SH DESCRIPTION
.BR libred_solar_elevation ()
calculates the Sun's elevation, and stores it, measured in degrees, in
@@ -21,17 +22,19 @@ degrees north of GPS's equator and
degrees east of GPS's prime meridian. The function is only
explicitly defined for values between -90 and +90 for
.I latitude
-and values between -180 and +180 for and
+and values between -180 and +180 for
.IR longitude .
Other values may or may not work, no error is thrown if used.
.SH RETURN VALUE
Upon successful completion, the
.BR libred_solar_elevation ()
-return 0, on failure it returns -1 and sets
+function returns 0, on failure it returns -1 and sets
.I errno
to indicate the error.
.SH ERRORS
-The function may fail for any reason specified for
+The
+.BR libred_solar_elevation ()
+function may fail for any reason specified for
.BR clock_gettime (3).
.SH SEE ALSO
.BR libred.h (0),