You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To make the transformation process simpler, especially when we need to do rotation transform only. Instead of doing this:
Transform2 transform();
transform.set_rotation(90.0);
auto transformed_point = transform * point;
It's better to write that like this:
auto transformed_point = Rotation2(90.0) * point;
In case we need to do all the transformation, it could also be more simpler:
auto transformed_point = Translation2(-5.0, 0.0) * Rotation2(90.0) * point;
And the good news is that we could specify the order of transformation. That's why i suggest it's better to separate the transformation into each of it's components (e.g. Transform2 will be separated into Rotation2, Scale2 and Translation2).
The text was updated successfully, but these errors were encountered:
To make the transformation process simpler, especially when we need to do rotation transform only. Instead of doing this:
It's better to write that like this:
In case we need to do all the transformation, it could also be more simpler:
And the good news is that we could specify the order of transformation. That's why i suggest it's better to separate the transformation into each of it's components (e.g.
Transform2
will be separated intoRotation2
,Scale2
andTranslation2
).The text was updated successfully, but these errors were encountered: