pub struct VpgenSegmentator { /* private fields */ }Expand description
Subdivides line segments based on approximation scale.
Used by ConvAdaptorVpgen / ConvSegmentator to ensure no segment
exceeds 1/approximation_scale in length, which is needed for
accurate rendering of non-linear transforms.
Implementations§
Source§impl VpgenSegmentator
impl VpgenSegmentator
pub fn new() -> Self
pub fn approximation_scale(&self) -> f64
pub fn set_approximation_scale(&mut self, s: f64)
pub fn auto_close() -> bool
pub fn auto_unclose() -> bool
pub fn reset(&mut self)
pub fn move_to(&mut self, x: f64, y: f64)
pub fn line_to(&mut self, x: f64, y: f64)
pub fn vertex(&mut self, x: &mut f64, y: &mut f64) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VpgenSegmentator
impl RefUnwindSafe for VpgenSegmentator
impl Send for VpgenSegmentator
impl Sync for VpgenSegmentator
impl Unpin for VpgenSegmentator
impl UnsafeUnpin for VpgenSegmentator
impl UnwindSafe for VpgenSegmentator
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