Coverage Report

Created: 2025-10-30 06:17

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
1.34k
#define M 1.333333333333333
10
11
672
static PJ_XY august_s_forward(PJ_LP lp, PJ *P) { /* Spheroidal, forward */
12
672
    PJ_XY xy = {0.0, 0.0};
13
672
    double t, c1, c, x1, x12, y1, y12;
14
672
    (void)P;
15
16
672
    t = tan(.5 * lp.phi);
17
672
    c1 = sqrt(1. - t * t);
18
672
    lp.lam *= .5;
19
672
    c = 1. + c1 * cos(lp.lam);
20
672
    x1 = sin(lp.lam) * c1 / c;
21
672
    y1 = t / c;
22
672
    x12 = x1 * x1;
23
672
    y12 = y1 * y1;
24
672
    xy.x = M * x1 * (3. + x12 - 3. * y12);
25
672
    xy.y = M * y1 * (3. + 3. * x12 - y12);
26
672
    return (xy);
27
672
}
28
29
27
PJ *PJ_PROJECTION(august) {
30
27
    P->inv = nullptr;
31
27
    P->fwd = august_s_forward;
32
27
    P->es = 0.;
33
27
    return P;
34
27
}