mirror of
https://github.com/hannobraun/Fornjot
synced 2025-02-28 18:15:53 +00:00
Update parameter name
This commit is contained in:
parent
dfc33e7c9b
commit
002f21c1bd
@ -16,9 +16,9 @@ pub struct Vector<const D: usize> {
|
||||
|
||||
impl<const D: usize> Vector<D> {
|
||||
/// Construct a `Vector` from an array
|
||||
pub fn from_components_f64(array: [f64; D]) -> Self {
|
||||
pub fn from_components_f64(components: [f64; D]) -> Self {
|
||||
Self {
|
||||
components: array.map(Scalar::from_f64),
|
||||
components: components.map(Scalar::from_f64),
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user