Struct gerber_types::CirclePrimitive [] [src]

pub struct CirclePrimitive {
    pub exposure: bool,
    pub diameter: MacroDecimal,
    pub center: (MacroDecimal, MacroDecimal),
    pub angle: Option<MacroDecimal>,
}

Fields

Exposure off/on

Diameter, a decimal >= 0

X and Y coordinates of center position, decimals

Rotation angle.

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 rotation modifier is optional. The default is no rotation. (We recommend always to set the angle explicitly.

Trait Implementations

impl Debug for CirclePrimitive
[src]

Formats the value using the given formatter.

impl PartialEq for CirclePrimitive
[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 CirclePrimitive
[src]