forked from StudioInfinity/dyna3
Group the parameters of the scene push methods
This commit is contained in:
parent
b02e682e15
commit
e67a658e00
1 changed files with 4 additions and 11 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue