removed useless enumerate
This commit is contained in:
parent
095cca9fe7
commit
d927bd06c2
@ -379,11 +379,11 @@ impl State {
|
|||||||
[0.0, hh, -hw].into(),
|
[0.0, hh, -hw].into(),
|
||||||
];
|
];
|
||||||
|
|
||||||
// Create the rotation matrix around the y-axis
|
// create the rotation matrix around the y-axis
|
||||||
let rotation_matrix = cgmath::Matrix4::from_axis_angle(cgmath::Vector3::unit_y(), -r);
|
let rotation_matrix = cgmath::Matrix4::from_axis_angle(cgmath::Vector3::unit_y(), -r);
|
||||||
|
|
||||||
// Apply the rotation to each vertex
|
// apply the rotation to each vertex
|
||||||
for (_, v) in vertices.iter_mut().enumerate() {
|
for v in vertices.iter_mut() {
|
||||||
*v = rotation_matrix.transform_point(*v);
|
*v = rotation_matrix.transform_point(*v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user