Struct hexagon_tiles::layout::LayoutTool
source · pub struct LayoutTool;
Implementations§
source§impl LayoutTool
impl LayoutTool
pub fn hex_to_pixel(layout: Layout, hex: Hex) -> Point
pub fn pixel_to_hex(layout: Layout, point: Point) -> FractionalHex
pub fn corner_offset(layout: Layout, corner: i32) -> Point
pub fn polygon_corners(layout: Layout, hex: Hex) -> Vec<Point>
Auto Trait Implementations§
impl RefUnwindSafe for LayoutTool
impl Send for LayoutTool
impl Sync for LayoutTool
impl Unpin for LayoutTool
impl UnwindSafe for LayoutTool
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more