Point2

Trait Point2 

Source
pub trait Point2 {
    // Required methods
    fn new(x: f32, y: f32) -> Self;
    fn x(&self) -> f32;
    fn y(&self) -> f32;
}
Expand description

Trait to aid with using arbitrary 2D point types on a Contour.

Required Methods§

Source

fn new(x: f32, y: f32) -> Self

Source

fn x(&self) -> f32

Source

fn y(&self) -> f32

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§