[][src]Trait lasy::Position

pub trait Position {
    fn position(&self) -> [f32; 2];
}

Point types that may describe position.

Input point types must be able to produce their normalised position along both axes (-1.0 to 1.0) in order to allow for the optimisation steps to reason about things like distance and angular variance.

Required methods

fn position(&self) -> [f32; 2]

The position of the point, where [-1.0, -1.0] is the bottom left and [1.0, 1.0] is the top right.

Note: If an axis is inverted you should be fine, but I haven't tested this.

Loading content...

Implementations on Foreign Types

impl<'a, T> Position for &'a T where
    T: Position
[src]

impl Position for [f32; 2][src]

Loading content...

Implementors

Loading content...