pub struct Edge {
pub top: Point,
pub bottom: Point,
pub winding: i32,
}Expand description
Nonhorizontal directed edge stored from smaller to larger vertical coordinate.
Fields§
§top: PointEndpoint with the smaller vertical coordinate.
bottom: PointEndpoint with the larger vertical coordinate.
winding: i32Original direction: positive for increasing vertical coordinates, negative otherwise.
Implementations§
Source§impl Edge
impl Edge
Sourcepub fn at(self, vertical: f64) -> f64
pub fn at(self, vertical: f64) -> f64
Interpolates the horizontal coordinate, clamping queries to this edge’s endpoints.
Sourcepub fn check_projection(
self,
start: f64,
end: f64,
width: u32,
path: &str,
) -> Result<(), ValidationError>
pub fn check_projection( self, start: f64, end: f64, width: u32, path: &str, ) -> Result<(), ValidationError>
Rejects visible opposite-sign projection cancellation above the precision guard.
start and end describe the vertical band; width is its raster viewport.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Edge
impl Freeze for Edge
impl Move for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnsafeUnpin for Edge
impl UnwindSafe for Edge
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