Skip to content

Commit

Permalink
Rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
setzer22 committed Oct 9, 2021
1 parent 4190568 commit 78a60f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gdnative-core/src/core_types/transform2d.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ impl Transform2D {
};

// construct matrix
let mut result = Self::IDENTITY.rotated(f32::atan2(v.y, v.x)).translated(p1.linear_interpolate(p2, weight));
let mut result = Self::IDENTITY
.rotated(f32::atan2(v.y, v.x))
.translated(p1.linear_interpolate(p2, weight));
result.scale_basis(s1.linear_interpolate(s2, weight));
result
}
Expand Down

0 comments on commit 78a60f9

Please sign in to comment.