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

Method uvToObjectMatrix

src/IECoreImage/ImagePrimitive.cpp:271–279  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271M33f ImagePrimitive::uvToObjectMatrix() const
272{
273 M33f result;
274 const Box2i &displayWindow = getDisplayWindow();
275 V2i size = displayWindow.size() + V2i( 1 );
276 result.scale( V2f( size.x, -size.y ) );
277 result.translate( V2f( -0.5f ) );
278 return result;
279}
280
281M33f ImagePrimitive::objectToPixelMatrix() const
282{

Callers 1

testSpacesMethod · 0.95

Calls 1

sizeMethod · 0.45

Tested by 1

testSpacesMethod · 0.76