Type Alias Delta

Source
pub type Delta<T> = Vec2<T>;
Expand description

A type alias that semantically expresses an offset/delta.

Aliased Type§

struct Delta<T> {
    pub x: T,
    pub y: T,
}

Fields§

§x: T§y: T

Trait Implementations§

Source§

impl<T> From<Direction> for Delta<T>
where T: Zero + Unity,

Source§

fn from(direction: Direction) -> Self

Converts to this type from the input type.