mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 12:27:35 +00:00
LibGfx: Add AffineTransform::is_identity_or_translation()
This will allow us to implement fast paths in cases where a simple translation can be handled faster than a full affine transform.
This commit is contained in:
parent
adc92beed1
commit
b4c3882d9c
2 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,7 @@ public:
|
|||
}
|
||||
|
||||
bool is_identity() const;
|
||||
bool is_identity_or_translation() const;
|
||||
|
||||
void map(float unmapped_x, float unmapped_y, float& mapped_x, float& mapped_y) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue