pub struct ThermalPrimitive {
pub center: (MacroDecimal, MacroDecimal),
pub outer_diameter: MacroDecimal,
pub inner_diameter: MacroDecimal,
pub gap: MacroDecimal,
pub angle: MacroDecimal,
}Expand description
The thermal primitive is a ring (annulus) interrupted by four gaps. Exposure is always on.
Fields§
§center: (MacroDecimal, MacroDecimal)X and Y coordinates of center point, decimals
outer_diameter: MacroDecimalOuter diameter, a decimal > inner diameter
inner_diameter: MacroDecimalInner diameter, a decimal >= 0
gap: MacroDecimalGap thickness, a decimal < (outer diameter) / sqrt(2)
angle: MacroDecimalRotation angle of the thermal primitive
The rotation angle is specified by a decimal, in degrees. The primitive is rotated around the origin of the macro definition, i.e. the (0, 0) point of macro coordinates. The gaps are on the X and Y axes through the center when the rotation angle is zero
Note: Rotation is only allowed if the primitive center point coincides with the origin of the macro definition.
Implementations§
Source§impl ThermalPrimitive
impl ThermalPrimitive
pub fn new(inner: MacroDecimal, outer: MacroDecimal, gap: MacroDecimal) -> Self
pub fn centered_at(self, center: (MacroDecimal, MacroDecimal)) -> Self
pub fn with_angle(self, angle: MacroDecimal) -> Self
Trait Implementations§
Source§impl Clone for ThermalPrimitive
impl Clone for ThermalPrimitive
Source§fn clone(&self) -> ThermalPrimitive
fn clone(&self) -> ThermalPrimitive
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ThermalPrimitive
impl Debug for ThermalPrimitive
Source§impl From<ThermalPrimitive> for MacroContent
impl From<ThermalPrimitive> for MacroContent
Source§fn from(val: ThermalPrimitive) -> MacroContent
fn from(val: ThermalPrimitive) -> MacroContent
Converts to this type from the input type.
Source§impl PartialEq for ThermalPrimitive
impl PartialEq for ThermalPrimitive
impl StructuralPartialEq for ThermalPrimitive
Auto Trait Implementations§
impl Freeze for ThermalPrimitive
impl RefUnwindSafe for ThermalPrimitive
impl Send for ThermalPrimitive
impl Sync for ThermalPrimitive
impl Unpin for ThermalPrimitive
impl UnwindSafe for ThermalPrimitive
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)