MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenImageIO / warp

Function warp

src/testtex/testtex.cpp:290–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

288
289
290inline Imath::V3f
291warp (float x, float y, const Imath::M33f &xform)
292{
293 Imath::V3f coord (x, y, 1.0f);
294 coord *= xform;
295 coord[0] *= 1/(1+2*std::max (-0.5f, coord[1]));
296 return coord;
297}
298
299
300inline Imath::V3f

Callers 2

warp_coordFunction · 0.85
map_warp_3DFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected