Coverage Report

Created: 2026-07-14 06:59

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/PROJ/src/projections/august.cpp
Line
Count
Source
1
2
3
#include <math.h>
4
5
#include "proj.h"
6
#include "proj_internal.h"
7
8
PROJ_HEAD(august, "August Epicycloidal") "\n\tMisc Sph, no inv";
9
2.01k
#define M 1.333333333333333
10
11
1.00k
static PJ_XY august_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */
12
1.00k
    PJ_XY xy = {0.0, 0.0};
13
1.00k
    double t, c1, c, x1, x12, y1, y12;
14
1.00k
    (void)P;
15
16
1.00k
    t = tan(.5 * lp.phi);
17
1.00k
    c1 = sqrt(1. - t * t);
18
1.00k
    lp.lam *= .5;
19
1.00k
    c = 1. + c1 * cos(lp.lam);
20
1.00k
    x1 = sin(lp.lam) * c1 / c;
21
1.00k
    y1 = t / c;
22
1.00k
    x12 = x1 * x1;
23
1.00k
    y12 = y1 * y1;
24
1.00k
    xy.x = M * x1 * (3. + x12 - 3. * y12);
25
1.00k
    xy.y = M * y1 * (3. + 3. * x12 - y12);
26
1.00k
    return (xy);
27
1.00k
}
28
29
46
PJ *PJ_PROJECTION(august) {
30
46
    P->inv = nullptr;
31
46
    P->fwd = august_s_forward;
32
46
    P->es = 0.;
33
46
    return P;
34
46
}