dimforge / nalgebra

Linear algebra library for Rust.
https://nalgebra.org
Apache License 2.0
4.04k stars 483 forks source link

Please implement Vector<T> From<Point<T>> trait #1450

Open MillieFD opened 4 weeks ago

MillieFD commented 4 weeks ago

The From<Point3<T>> trait is not currently implemented for the Vector3<T> struct. Attempting to add this implementation in my own code causes complier error E0117 (Only traits defined in the current crate can be implemented for arbitrary types). It is therefore necessary to implement this From trait at source.

As the Point struct is based on the Vector struct, this should be very easy to implement.

sebcrozet commented 3 weeks ago

This looks like a reasonable addition.