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

Method objectToPixelMatrix

src/IECoreImage/ImagePrimitive.cpp:281–289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

279}
280
281M33f ImagePrimitive::objectToPixelMatrix() const
282{
283 M33f result;
284 const Box2i &displayWindow = getDisplayWindow();
285 V2i size = displayWindow.size();
286 result.translate( V2f( displayWindow.min.x, displayWindow.min.y ) + V2f( size.x, size.y ) / 2.0f );
287 result.scale( V2f( 1.0f, -1.0f ) );
288 return result;
289}
290
291M33f ImagePrimitive::pixelToObjectMatrix() const
292{

Callers 1

testSpacesMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by 1

testSpacesMethod · 0.76