MCPcopy Create free account
hub / github.com/ImageEngine/cortex / pixelToObjectMatrix

Method pixelToObjectMatrix

src/IECoreImage/ImagePrimitive.cpp:291–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

289}
290
291M33f ImagePrimitive::pixelToObjectMatrix() const
292{
293 M33f result;
294 const Box2i &displayWindow = getDisplayWindow();
295 V2i size = displayWindow.size();
296 result.scale( V2f( 1.0f, -1.0f ) );
297 result.translate( -V2f( displayWindow.min.x, displayWindow.min.y ) - V2f( size.x, size.y ) / 2.0f );
298 return result;
299}
300
301M33f ImagePrimitive::pixelToUVMatrix() const
302{

Callers 1

testSpacesMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by 1

testSpacesMethod · 0.76