bevy_prototype_lyon 0.7.2

Draw 2D shapes and paths in the Bevy game engine.
Documentation
//! Utility types and conversion traits.

use bevy::math::Vec2;
use lyon_tessellation::math::{Point, Vector};

pub trait ToPoint {
    fn to_point(self) -> Point;
}

pub trait ToVector {
    fn to_vector(self) -> Vector;
}

impl ToPoint for Vec2 {
    fn to_point(self) -> Point {
        Point::new(self.x, self.y)
    }
}

impl ToVector for Vec2 {
    fn to_vector(self) -> Vector {
        Vector::new(self.x, self.y)
    }
}