Fixed broken scale transform
This commit is contained in:
parent
b08c73ddf1
commit
b4babf978e
4 changed files with 47 additions and 13 deletions
|
|
@ -61,3 +61,9 @@ void CoordSpaceHelperTransform::scale_about(const WorldVec& scalePos, const Worl
|
|||
WorldVec mVec = pos - scalePos;
|
||||
pos = scalePos + FixedPoint::multiplier_vec_div(mVec, scaleAmount);
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const CoordSpaceHelperTransform& a) {
|
||||
return os << "pos: [" << a.pos.x() << " " << a.pos.y() << "]\n"
|
||||
<< "inverseScale: " << static_cast<WorldScalar>(a.inverseScale) << "\n"
|
||||
<< "rotation: " << a.rotation << "\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue