impl Mul<&Vec3> for f64
This commit is contained in:
parent
65dd9b5095
commit
d4cbcfcb59
|
|
@ -310,6 +310,14 @@ impl Mul<Vec3> for f64 {
|
|||
}
|
||||
}
|
||||
|
||||
impl Mul<&Vec3> for f64 {
|
||||
type Output = Vec3;
|
||||
|
||||
fn mul(self, rhs: &Vec3) -> Vec3 {
|
||||
rhs * self
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
|
|
|||
Loading…
Reference in New Issue