Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
wtholliday committed Sep 10, 2023
1 parent 9b1ce10 commit e1f4ac1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,9 +788,7 @@ impl Vger {
fn add_xform(&mut self) -> usize {
if self.xform_count < MAX_PRIMS {
let m = *self.tx_stack.last().unwrap();
self.scenes[self.cur_scene]
.xforms
.push(m.to_array());
self.scenes[self.cur_scene].xforms.push(m.to_array());
let n = self.xform_count;
self.xform_count += 1;
return n;
Expand Down Expand Up @@ -828,7 +826,7 @@ impl Vger {
/// Rotates the coordinate system.
pub fn rotate(&mut self, theta: f32) {
if let Some(m) = self.tx_stack.last_mut() {
*m = m.pre_rotate(0.0,0.0,1.0,euclid::Angle::<f32>::radians(theta));
*m = m.pre_rotate(0.0, 0.0, 1.0, euclid::Angle::<f32>::radians(theta));
}
}

Expand Down

0 comments on commit e1f4ac1

Please sign in to comment.