Struct gerber_types::ThermalPrimitive
[−]
[src]
pub struct ThermalPrimitive { pub center: (MacroDecimal, MacroDecimal), pub outer_diameter: MacroDecimal, pub inner_diameter: MacroDecimal, pub gap: MacroDecimal, pub angle: MacroDecimal, }
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: MacroDecimal
Outer diameter, a decimal > inner diameter
inner_diameter: MacroDecimal
Inner diameter, a decimal >= 0
gap: MacroDecimal
Gap thickness, a decimal < (outer diameter) / sqrt(2)
angle: MacroDecimal
Rotation 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.
Trait Implementations
impl Debug for ThermalPrimitive
[src]
impl PartialEq for ThermalPrimitive
[src]
fn eq(&self, __arg_0: &ThermalPrimitive) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ThermalPrimitive) -> bool
This method tests for !=
.