Enum jiao::core::matrix::ApplyPerspectiveClip
source · #[repr(u8)]pub enum ApplyPerspectiveClip {
No = 0,
Yes = 1,
}
Expand description
When we transform points through a matrix containing perspective (the bottom row is something other than 0,0,1), the bruteforce math can produce confusing results (since we might divide by 0, or a negative w value).
By default, methods that map rects and paths will apply perspective clipping, but this can be changed by specifying kYes to those methods.
Variants§
No = 0
Don’t pre-clip the geometry before applying the (perspective) matrix
Yes = 1
Do pre-clip the geometry before applying the (perspective) matrix
Trait Implementations§
source§impl Clone for ApplyPerspectiveClip
impl Clone for ApplyPerspectiveClip
source§fn clone(&self) -> ApplyPerspectiveClip
fn clone(&self) -> ApplyPerspectiveClip
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 ApplyPerspectiveClip
impl Debug for ApplyPerspectiveClip
source§impl PartialEq for ApplyPerspectiveClip
impl PartialEq for ApplyPerspectiveClip
source§fn eq(&self, other: &ApplyPerspectiveClip) -> bool
fn eq(&self, other: &ApplyPerspectiveClip) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ApplyPerspectiveClip
impl Eq for ApplyPerspectiveClip
impl StructuralPartialEq for ApplyPerspectiveClip
Auto Trait Implementations§
impl Freeze for ApplyPerspectiveClip
impl RefUnwindSafe for ApplyPerspectiveClip
impl Send for ApplyPerspectiveClip
impl Sync for ApplyPerspectiveClip
impl Unpin for ApplyPerspectiveClip
impl UnwindSafe for ApplyPerspectiveClip
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