pub struct PerspectiveIteratorX {
pub x: f64,
pub y: f64,
/* private fields */
}Expand description
Incremental iterator for scanline walking with perspective transform.
Maintains running numerator/denominator for perspective divide without full division at each pixel (only one divide per step).
Port of C++ trans_perspective::iterator_x.
Fields§
§x: f64§y: f64Implementations§
Source§impl PerspectiveIteratorX
impl PerspectiveIteratorX
Sourcepub fn default_new() -> Self
pub fn default_new() -> Self
Create a default (identity-like) iterator at the origin.
Auto Trait Implementations§
impl Freeze for PerspectiveIteratorX
impl RefUnwindSafe for PerspectiveIteratorX
impl Send for PerspectiveIteratorX
impl Sync for PerspectiveIteratorX
impl Unpin for PerspectiveIteratorX
impl UnwindSafe for PerspectiveIteratorX
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