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,
}Expand description
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: MacroDecimalOuter diameter of outer concentric ring, a decimal >= 0
ring_thickness: MacroDecimalRing thickness, a decimal >= 0
gap: MacroDecimalGap between rings, a decimal >= 0
max_rings: u32Maximum number of rings
cross_hair_thickness: MacroDecimalCross hair thickness, a decimal >= 0
cross_hair_length: MacroDecimalCross hair length, a decimal >= 0
angle: MacroDecimalRotation 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.
Implementations§
Source§impl MoirePrimitive
impl MoirePrimitive
pub fn new() -> Self
pub fn centered_at(self, center: (MacroDecimal, MacroDecimal)) -> Self
pub fn with_diameter(self, diameter: MacroDecimal) -> Self
pub fn with_rings_max(self, max_rings: u32) -> Self
pub fn with_ring_thickness(self, thickness: MacroDecimal) -> Self
pub fn with_gap(self, gap: MacroDecimal) -> Self
pub fn with_cross_thickness(self, thickness: MacroDecimal) -> Self
pub fn with_cross_length(self, length: MacroDecimal) -> Self
pub fn with_angle(self, angle: MacroDecimal) -> Self
Trait Implementations§
Source§impl Clone for MoirePrimitive
impl Clone for MoirePrimitive
Source§fn clone(&self) -> MoirePrimitive
fn clone(&self) -> MoirePrimitive
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 MoirePrimitive
impl Debug for MoirePrimitive
Source§impl From<MoirePrimitive> for MacroContent
impl From<MoirePrimitive> for MacroContent
Source§fn from(val: MoirePrimitive) -> MacroContent
fn from(val: MoirePrimitive) -> MacroContent
Converts to this type from the input type.
Source§impl PartialEq for MoirePrimitive
impl PartialEq for MoirePrimitive
impl StructuralPartialEq for MoirePrimitive
Auto Trait Implementations§
impl Freeze for MoirePrimitive
impl RefUnwindSafe for MoirePrimitive
impl Send for MoirePrimitive
impl Sync for MoirePrimitive
impl Unpin for MoirePrimitive
impl UnwindSafe for MoirePrimitive
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)