pub trait Attractor: Debug + Clone {
// Required method
fn next_point(&self, previous: Vec3) -> Vec3;
}
Expand description
A strange attractor.
This is made generic to allow for speedy execution of all kinds of attractors.
Required Methods§
sourcefn next_point(&self, previous: Vec3) -> Vec3
fn next_point(&self, previous: Vec3) -> Vec3
Get the next point of the attractor.
Please make this #[inline(always)]
!
Implementors§
impl Attractor for PolynomialSprott2Degree
This is part of the polynomial Sprott algorithm. We get the new coordinates by multiplying previous (using polynomials) with a set of coefficients.