Trait graph_layout::Vector [] [src]

pub trait Vector: Clone {
    type Scalar: Copy;
    fn length_squared(&self) -> Self::Scalar;
    fn scale(&mut self, factor: Self::Scalar);
    fn sub(&self, other: &Self) -> Self;
    fn add_scaled(&mut self, factor: Self::Scalar, other: &Self);
    fn reset(&mut self);
    fn clip_within(&mut self, min: &Self, max: &Self);
    fn new() -> Self;
}

Associated Types

Required Methods

Implementors