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

X and Y coordinates of center point, decimals

Outer diameter, a decimal > inner diameter

Inner diameter, a decimal >= 0

Gap thickness, a decimal < (outer diameter) / sqrt(2)

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]

Formats the value using the given formatter.

impl PartialEq for ThermalPrimitive
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<W: Write> GerberCode<W> for ThermalPrimitive
[src]