Trait cppn::position::Position [] [src]

pub trait Position {
    fn dims() -> usize;
    fn coords(&self) -> &[f64];
    fn distance_square(&self, other: &Self) -> f64;
    fn origin() -> Self;

    fn distance(&self, other: &Self) -> f64 { ... }
}

Represents a position within a substrate. Each position coordinate is mapped to an input of a CPPN.

Required Methods

Provided Methods

Implementors