carnelian::geometry

Trait Corners

Source
pub trait Corners {
    // Required methods
    fn top_left(&self) -> Point;
    fn top_right(&self) -> Point;
    fn bottom_left(&self) -> Point;
    fn bottom_right(&self) -> Point;
}
Expand description

Replacement for methods removed from Euclid

Required Methods§

Source

fn top_left(&self) -> Point

Source

fn top_right(&self) -> Point

Source

fn bottom_left(&self) -> Point

Source

fn bottom_right(&self) -> Point

Implementors§