1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#![cfg(feature="default")] use super::Vector; impl Vector { pub fn to_skia_point(self) -> (f32, f32) { return (self.x as f32, self.y as f32); } pub fn from_skia_point(p: &skia_safe::Point) -> Self { return Vector {x: p.x as f64, y: p.y as f64 } } }