Skip to main content

is_integer_translation

Function is_integer_translation 

Source
pub fn is_integer_translation(transform: &Affine) -> bool
Expand description

Check if an affine transform is a pure integer translation.

Returns true if the transform only contains integer translation (no rotation, skew, or scaling), meaning rectangles will remain pixel-aligned after transformation.