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

Object Safety§

This trait is not object safe.

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§