Skip to main content

CoordinateConversions

Trait CoordinateConversions 

Source
pub trait CoordinateConversions {
    // Required methods
    fn wpos_to_cpos(&self) -> Self;
    fn cpos_to_wpos(&self) -> Self;
    fn cpos_to_wpos_center(&self) -> Self;
}

Required Methods§

Source

fn wpos_to_cpos(&self) -> Self

Source

fn cpos_to_wpos(&self) -> Self

Source

fn cpos_to_wpos_center(&self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl CoordinateConversions for Vec2<f32>

Source§

fn wpos_to_cpos(&self) -> Self

Source§

fn cpos_to_wpos(&self) -> Self

Source§

fn cpos_to_wpos_center(&self) -> Self

Source§

impl CoordinateConversions for Vec2<f64>

Source§

fn wpos_to_cpos(&self) -> Self

Source§

fn cpos_to_wpos(&self) -> Self

Source§

fn cpos_to_wpos_center(&self) -> Self

Source§

impl CoordinateConversions for Vec2<i32>

Source§

fn wpos_to_cpos(&self) -> Self

Source§

fn cpos_to_wpos(&self) -> Self

Source§

fn cpos_to_wpos_center(&self) -> Self

Implementors§