Closed sonygod closed 1 year ago
pub trait Three_Vector<T: Num + Copy + ComplexFloat + FloatCore> { fn lerp_vectors(&self, v1: Vector3<T>, v2: Vector3<T>, alpha: T) -> Vector3<T>; } pub trait Three_Vector<T: Num + Copy + ComplexFloat + FloatCore> { fn lerp_vectors(&self, v1: Vector3<T>, v2: Vector3<T>, alpha: T) -> Vector3<T> { v1 + (v2 - v1) * alpha //here say cannot subtract `Vector3<T>` from `Vector3<T> } }
hello, I want to ask how to fixed cannot subtract Vector3<T> from `Vector3?
Vector3<T>
sorry,use BaseNum instead of Num. done
hello, I want to ask how to fixed cannot subtract?
Vector3<T>
from `Vector3