| 269 | } |
| 270 | |
| 271 | M33f 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 | |
| 281 | M33f ImagePrimitive::objectToPixelMatrix() const |
| 282 | { |