Struct epaint::tessellator::PathPoint
source · struct PathPoint {
pos: Pos2,
normal: Vec2,
}
Fields§
§pos: Pos2
§normal: Vec2
For filled paths the normal is used for anti-aliasing (both strokes and filled areas).
For strokes the normal is also used for giving thickness to the path (i.e. in what direction to expand).
The normal could be estimated by differences between successive points, but that would be less accurate (and in some cases slower).
Normals are normally unit-length.
Trait Implementations§
impl Copy for PathPoint
impl StructuralPartialEq for PathPoint
Auto Trait Implementations§
impl Freeze for PathPoint
impl RefUnwindSafe for PathPoint
impl Send for PathPoint
impl Sync for PathPoint
impl Unpin for PathPoint
impl UnwindSafe for PathPoint
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)