Reduce temporaries in matrix unproject

This commit is contained in:
Danny Robson 2011-10-24 10:26:17 +11:00
parent 406b70f1c3
commit cdc651cf66

View File

@ -115,9 +115,7 @@ matrix::to_local (const util::point &p) const {
util::point
matrix::to_global (const util::point &p) const {
matrix m = *this;
m.invert ();
return m.to_local (p);
return inverse ().to_local (p);
}