Struct lyon_algorithms::hatching::DotOptions
source · #[non_exhaustive]pub struct DotOptions {
pub tolerance: f32,
pub angle: Angle,
pub uv_origin: Point,
}
Expand description
Parameters for generating dot patterns.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.tolerance: f32
Maximum allowed distance to the path when building an approximation.
Default value: HatchingOptions::DEFAULT_TOLERANCE
.
angle: Angle
Angle between the hatching pattern and the x axis.
Default value: HatchingOptions::ANGLE
.
uv_origin: Point
The origin of the rotated uv coordinates.
Implementations§
source§impl DotOptions
impl DotOptions
sourcepub const DEFAULT_TOLERANCE: f32 = 0.100000001f32
pub const DEFAULT_TOLERANCE: f32 = 0.100000001f32
Default flattening tolerance.
sourcepub const DEFAULT_ANGLE: Angle = _
pub const DEFAULT_ANGLE: Angle = _
Default inclination of the dot pattern.
pub const DEFAULT_UV_ORIGIN: Point = _
pub const DEFAULT: Self = _
pub fn tolerance(tolerance: f32) -> Self
pub fn angle(angle: Angle) -> Self
pub fn with_tolerance(self, tolerance: f32) -> Self
pub fn with_angle(self, angle: Angle) -> Self
Trait Implementations§
source§impl Clone for DotOptions
impl Clone for DotOptions
source§fn clone(&self) -> DotOptions
fn clone(&self) -> DotOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DotOptions
impl Debug for DotOptions
source§impl Default for DotOptions
impl Default for DotOptions
source§impl PartialEq for DotOptions
impl PartialEq for DotOptions
source§fn eq(&self, other: &DotOptions) -> bool
fn eq(&self, other: &DotOptions) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DotOptions
impl StructuralPartialEq for DotOptions
Auto Trait Implementations§
impl RefUnwindSafe for DotOptions
impl Send for DotOptions
impl Sync for DotOptions
impl Unpin for DotOptions
impl UnwindSafe for DotOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more