pub trait NblastNeuron {
    // Required methods
    fn len(&self) -> usize;
    fn points(&self) -> impl Iterator<Item = Point3> + '_;
    fn tangents(&self) -> impl Iterator<Item = Normal3> + '_;
    fn alphas(&self) -> impl Iterator<Item = Precision> + '_;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn centroid(&self) -> Point3 { ... }
}
Expand description

Trait describing a point cloud representing a neuron.

Required Methods§

source

fn len(&self) -> usize

Number of points in the neuron.

source

fn points(&self) -> impl Iterator<Item = Point3> + '_

Return an owned copy of the points present in the neuron. The order is not guaranteed, but is consistent with tangents.

source

fn tangents(&self) -> impl Iterator<Item = Normal3> + '_

Return an owned copy of the unit tangents present in the neuron. The order is not guaranteed, but is consistent with points.

source

fn alphas(&self) -> impl Iterator<Item = Precision> + '_

Return an owned copy of the alpha values for points in the neuron. The order is consistent with points and tangents.

Provided Methods§

source

fn is_empty(&self) -> bool

Whether the number of points is 0.

source

fn centroid(&self) -> Point3

Object Safety§

This trait is not object safe.

Implementors§