Struct gerber_types::MoirePrimitive
[−]
[src]
pub struct MoirePrimitive { pub center: (MacroDecimal, MacroDecimal), pub diameter: MacroDecimal, pub ring_thickness: MacroDecimal, pub gap: MacroDecimal, pub max_rings: u32, pub cross_hair_thickness: MacroDecimal, pub cross_hair_length: MacroDecimal, pub angle: MacroDecimal, }
The moiré primitive is a cross hair centered on concentric rings (annuli). Exposure is always on.
Fields
center: (MacroDecimal, MacroDecimal)
X and Y coordinates of center point, decimals
diameter: MacroDecimal
Outer diameter of outer concentric ring, a decimal >= 0
ring_thickness: MacroDecimal
Ring thickness, a decimal >= 0
gap: MacroDecimal
Gap between rings, a decimal >= 0
max_rings: u32
Maximum number of rings
cross_hair_thickness: MacroDecimal
Cross hair thickness, a decimal >= 0
cross_hair_length: MacroDecimal
Cross hair length, a decimal >= 0
angle: MacroDecimal
Rotation angle of the moiré 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.
Note: Rotation is only allowed if the primitive center point coincides with the origin of the macro definition.
Trait Implementations
impl Debug for MoirePrimitive
[src]
impl PartialEq for MoirePrimitive
[src]
fn eq(&self, __arg_0: &MoirePrimitive) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MoirePrimitive) -> bool
This method tests for !=
.