pub struct SelfStandingWallCoverage {
pub per_region: Vec<(FloorRegionId, f64)>,
pub uncovered: f64,
}Expand description
自立壁がどの床領域の上にどれだけ載っているか
(Model::self_standing_wall_coverage の結果)。
比率はいずれも壁の全重量に対する割合で、per_region の合計と uncovered を
足すと 1 になる(丸め誤差を除く)。
Fields§
§per_region: Vec<(FloorRegionId, f64)>載っている床領域と、その床領域が受け持つ重量比。
uncovered: f64どの床領域にも載らない部分の重量比。0 でなければモデルの不備 (荷重の行き先が無い。解析前チェックがエラーにする)。
Implementations§
Source§impl SelfStandingWallCoverage
impl SelfStandingWallCoverage
Sourcepub fn has_uncovered(&self) -> bool
pub fn has_uncovered(&self) -> bool
荷重の行き先が無い部分を持つか(判定のしきい値をここに集約する)。
交点計算の丸め、および壁の端がちょうど床領域の境界に載る場合の ごく短い区間を拾わないよう、全体の 0.1% を下回る取りこぼしは無視する。
Trait Implementations§
Source§impl Clone for SelfStandingWallCoverage
impl Clone for SelfStandingWallCoverage
Source§fn clone(&self) -> SelfStandingWallCoverage
fn clone(&self) -> SelfStandingWallCoverage
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 SelfStandingWallCoverage
impl Debug for SelfStandingWallCoverage
Source§impl Default for SelfStandingWallCoverage
impl Default for SelfStandingWallCoverage
Source§fn default() -> SelfStandingWallCoverage
fn default() -> SelfStandingWallCoverage
Returns the “default value” for a type. Read more
Source§impl PartialEq for SelfStandingWallCoverage
impl PartialEq for SelfStandingWallCoverage
Source§fn eq(&self, other: &SelfStandingWallCoverage) -> bool
fn eq(&self, other: &SelfStandingWallCoverage) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SelfStandingWallCoverage
Auto Trait Implementations§
impl Freeze for SelfStandingWallCoverage
impl RefUnwindSafe for SelfStandingWallCoverage
impl Send for SelfStandingWallCoverage
impl Sync for SelfStandingWallCoverage
impl Unpin for SelfStandingWallCoverage
impl UnsafeUnpin for SelfStandingWallCoverage
impl UnwindSafe for SelfStandingWallCoverage
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