It’s kind of awkward because the solution is probably pretty easy, but I’m new to rust as well as nalgebra, so I don’t know how to solve this.

I got two points (nalgebra::Point<f32, ggez::nalgebra::U2>) and I want to get the distance between them using the nalgebra::distance function. When I insert the two points I get this error:

the trait bound `&ggez::nalgebra::Point<f32, ggez::nalgebra::U2>: alga::linear::vector::EuclideanSpace`

is not satisfied

the trait `alga::linear::vector::EuclideanSpace`

is not implemented for `&ggez::nalgebra::Point<f32, ggez::nalgebra::U2>`

help: the following implementations were found:

<ggez::nalgebra::Point<N, D> as alga::linear::vector::EuclideanSpace>

How can I solve this?