Trait sark_grids::point::Point2d
source · [−]pub trait Point2d: Clone + Copy {
fn as_ivec2(&self) -> IVec2;
fn x(&self) -> i32 { ... }
fn y(&self) -> i32 { ... }
fn as_uvec2(&self) -> UVec2 { ... }
fn as_vec2(&self) -> Vec2 { ... }
fn to_array(&self) -> [i32; 2] { ... }
}
Expand description
A trait for easier mixing of the different types representing a 2d point.