Coverage Report

Created: 2024-02-25 06:14

/src/PROJ/src/projections/larr.cpp
Line
Count
Source (jump to first uncovered line)
1
2
3
#include <math.h>
4
5
#include "proj.h"
6
#include "proj_internal.h"
7
8
PROJ_HEAD(larr, "Larrivee") "\n\tMisc Sph, no inv";
9
10
0
#define SIXTH .16666666666666666
11
12
0
static PJ_XY larr_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */
13
0
    PJ_XY xy = {0.0, 0.0};
14
0
    (void)P;
15
16
0
    xy.x = 0.5 * lp.lam * (1. + sqrt(cos(lp.phi)));
17
0
    xy.y = lp.phi / (cos(0.5 * lp.phi) * cos(SIXTH * lp.lam));
18
0
    return xy;
19
0
}
20
21
14
PJ *PJ_PROJECTION(larr) {
22
23
14
    P->es = 0;
24
14
    P->fwd = larr_s_forward;
25
26
14
    return P;
27
14
}