Skip to content

Commit

Permalink
Call the parameter scale_factor
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk authored Jul 15, 2024
1 parent eb1bffa commit 4a894ce
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/emath/src/rect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ impl Rect {

/// Scale up by this factor in each direction, keeping the center
#[must_use]
pub fn scale_from_center2(self, scale: Vec2) -> Self {
Self::from_center_size(self.center(), self.size() * scale)
pub fn scale_from_center2(self, scale_factor: Vec2) -> Self {
Self::from_center_size(self.center(), self.size() * scale_factor)
}

/// Shrink by this much in each direction, keeping the center
Expand Down

0 comments on commit 4a894ce

Please sign in to comment.