pub struct BuildingLot {
pub position: Vec2,
pub frontage_center: Vec2,
pub rotation: f32,
pub width: f32,
pub depth: f32,
pub is_shoreline: bool,
}Expand description
A rectangular building footprint aligned to the nearest street edge.
Fields§
§position: Vec2World-space center of the footprint.
frontage_center: Vec2Midpoint of the street frontage edge (pre-setback), used for road access queries so that pruning doesn’t misidentify the access road.
rotation: f32Rotation angle in radians (around the Y axis in 3D; around Z in 2D top-down).
width: f32Extent along the street frontage.
depth: f32Extent perpendicular to the street.
is_shoreline: boolTrue when the lot’s footprint touches water (under
WaterPolicy::TagShoreline or WaterPolicy::CarveFlush).
Always false under WaterPolicy::Skip since touching lots are
discarded.
Trait Implementations§
Source§impl Clone for BuildingLot
impl Clone for BuildingLot
Source§fn clone(&self) -> BuildingLot
fn clone(&self) -> BuildingLot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuildingLot
impl Debug for BuildingLot
Source§impl<'de> Deserialize<'de> for BuildingLot
impl<'de> Deserialize<'de> for BuildingLot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BuildingLot
impl RefUnwindSafe for BuildingLot
impl Send for BuildingLot
impl Sync for BuildingLot
impl Unpin for BuildingLot
impl UnsafeUnpin for BuildingLot
impl UnwindSafe for BuildingLot
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