mirror of
https://github.com/hannobraun/Fornjot
synced 2025-05-05 18:38:28 +00:00
Relax type of function parameter
This commit is contained in:
parent
590425214d
commit
b3a354415d
@ -23,7 +23,7 @@ impl Plane {
|
||||
}
|
||||
|
||||
pub fn normal(&self) -> Vector<3> {
|
||||
self.u().cross(self.v()).normalize()
|
||||
self.u().cross(&self.v()).normalize()
|
||||
}
|
||||
|
||||
pub fn point_from_local(&self, point: impl Into<Point<2>>) -> Point<3> {
|
||||
|
@ -28,7 +28,7 @@ impl<const D: usize> Vector<D> {
|
||||
}
|
||||
|
||||
impl Vector<3> {
|
||||
pub fn cross(self, other: Self) -> Self {
|
||||
pub fn cross(self, other: &Self) -> Self {
|
||||
let [ax, ay, az] = self.components;
|
||||
let [bx, by, bz] = other.components;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user