pub struct MapConfig {
pub world: Rect,
pub map: Rect,
pub y_axis: WorldYAxis,
pub rotation_radians: f32,
}Expand description
Explicit world and map geometry. See the module recipe for construction.
Fields§
§world: RectClosed planar world bounds; not inferred from supplied points.
map: RectLogical UI panel bounds, half-open for picking.
y_axis: WorldYAxis§rotation_radians: f32Clockwise screen rotation in radians, after applying y_axis.
Any finite f32 angle is accepted; very large angles lose phase precision.
Trait Implementations§
impl Copy for MapConfig
impl StructuralPartialEq for MapConfig
Auto Trait Implementations§
impl Freeze for MapConfig
impl RefUnwindSafe for MapConfig
impl Send for MapConfig
impl Sync for MapConfig
impl Unpin for MapConfig
impl UnwindSafe for MapConfig
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