Group the parameters of the scene push methods
All checks were successful
/ test (pull_request) Successful in 3m39s

This commit is contained in:
Aaron Fenyes 2025-08-03 20:09:50 -07:00
parent b02e682e15
commit e67a658e00

View file

@ -54,11 +54,8 @@ impl SceneSpheres {
} }
fn push( fn push(
&mut self, &mut self, representation: DVector<f64>,
representation: DVector<f64>, color: ElementColor, opacity: f32, highlight: f32,
color: ElementColor,
opacity: f32,
highlight: f32,
) { ) {
self.representations.push(representation); self.representations.push(representation);
self.colors_with_opacity.push(combine_channels(color, opacity)); self.colors_with_opacity.push(combine_channels(color, opacity));
@ -84,12 +81,8 @@ impl ScenePoints {
} }
fn push( fn push(
&mut self, &mut self, representation: DVector<f64>,
representation: DVector<f64>, color: ElementColor, opacity: f32, highlight: f32, selected: bool,
color: ElementColor,
opacity: f32,
highlight: f32,
selected: bool,
) { ) {
self.representations.push(representation); self.representations.push(representation);
self.colors_with_opacity.push(combine_channels(color, opacity)); self.colors_with_opacity.push(combine_channels(color, opacity));