Group the parameters of the scene push methods
All checks were successful
/ test (pull_request) Successful in 3m39s
All checks were successful
/ test (pull_request) Successful in 3m39s
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(
|
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));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue