Group the parameters of the scene push methods

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