I'm trying something like:
impl<P> CustomPoint<P> where P: Point {
fn new(cenet: P, size: f64) {
let p = center.add( value );
...
}
}
and it drops the error: items from traits can only be used if the trait is in scope
In 'rstar-demo' there is an example:
pub fn create_random_points<P: Point<Scalar = f32>>(num_points: usize) -> Vec<P>
and it's works, but the same doesn't work for me.