Skip to main content

Transform

Trait Transform 

Source
pub trait Transform {
    // Required methods
    fn apply(&self, p: (f64, f64)) -> (f64, f64);
    fn apply_inverse(&self, p: (f64, f64)) -> (f64, f64);
    fn inverse_exists(&self) -> bool;
}

Required Methods§

Source

fn apply(&self, p: (f64, f64)) -> (f64, f64)

Source

fn apply_inverse(&self, p: (f64, f64)) -> (f64, f64)

Source

fn inverse_exists(&self) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§