pub struct WallOpening {
pub width: f64,
pub height: f64,
pub offset: Option<[f64; 2]>,
}Expand description
壁の個別開口(耐震壁の複数開口の取り扱い。RC 規準)。
寸法は壁面内で定義する: width=壁長さ方向の開口長さ l0 [mm]、
height=壁高さ方向の開口高さ h0 [mm]。
Fields§
§width: f64開口長さ l0 [mm](壁長さ方向)。
height: f64開口高さ h0 [mm](壁高さ方向)。
offset: Option<[f64; 2]>開口左下の位置 [mm](壁面内: [壁始端からの水平距離, 壁下端からの高さ])。 包絡開口の作成・開口の位置効果評価(将来対応)用。None は位置不定 (等価開口による面積評価のみに用いられる)。
Implementations§
Source§impl WallOpening
impl WallOpening
Sourcepub fn envelope(&self, other: &WallOpening) -> Option<WallOpening>
pub fn envelope(&self, other: &WallOpening) -> Option<WallOpening>
2開口の包絡開口(外接矩形)。どちらかの位置が不明なら None。
Sourcepub fn can_envelope(&self, other: &WallOpening) -> bool
pub fn can_envelope(&self, other: &WallOpening) -> bool
自動判定モードで 2 開口を包絡してよいかの判定 (複数開口の取り扱いの判定図。RC 規準)。
l < 1.5·h または l < 1m(1000mm)のとき包絡開口とみなす。
- l: 開口間距離(矩形間の純距離。重なっていれば 0)
- h: 包絡開口とした場合の高さ
位置(offset)不明の開口は距離を定義できないため包絡不可。
Trait Implementations§
Source§impl Clone for WallOpening
impl Clone for WallOpening
Source§fn clone(&self) -> WallOpening
fn clone(&self) -> WallOpening
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 WallOpening
impl Debug for WallOpening
Source§impl<'de> Deserialize<'de> for WallOpening
impl<'de> Deserialize<'de> for WallOpening
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
Source§impl PartialEq for WallOpening
impl PartialEq for WallOpening
Source§fn eq(&self, other: &WallOpening) -> bool
fn eq(&self, other: &WallOpening) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WallOpening
impl Serialize for WallOpening
impl StructuralPartialEq for WallOpening
Auto Trait Implementations§
impl Freeze for WallOpening
impl RefUnwindSafe for WallOpening
impl Send for WallOpening
impl Sync for WallOpening
impl Unpin for WallOpening
impl UnsafeUnpin for WallOpening
impl UnwindSafe for WallOpening
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