strange_attractor_renderer

Trait Attractor

source
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§

source

fn next_point(&self, previous: Vec3) -> Vec3

Get the next point of the attractor.

Please make this #[inline(always)]!

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

source§

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.