MCPcopy Create free account
hub / github.com/OSGeo/PROJ / initQ

Function initQ

src/transformations/affine.cpp:113–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113static struct pj_opaque_affine *initQ() {
114 struct pj_opaque_affine *Q = static_cast<struct pj_opaque_affine *>(
115 calloc(1, sizeof(struct pj_opaque_affine)));
116 if (nullptr == Q)
117 return nullptr;
118
119 /* default values */
120 Q->forward.s11 = 1.0;
121 Q->forward.s22 = 1.0;
122 Q->forward.s33 = 1.0;
123 Q->forward.tscale = 1.0;
124
125 Q->reverse.s11 = 1.0;
126 Q->reverse.s22 = 1.0;
127 Q->reverse.s33 = 1.0;
128 Q->reverse.tscale = 1.0;
129
130 return Q;
131}
132
133static void computeReverseParameters(PJ *P) {
134 struct pj_opaque_affine *Q = (struct pj_opaque_affine *)P->opaque;

Callers 1

affine.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected