pub struct Line2D<T> {
pub a: Vector2D<T>,
pub b: Vector2D<T>,
}Fields§
§a: Vector2D<T>§b: Vector2D<T>Implementations§
Source§impl Line2D<TSize>
impl Line2D<TSize>
pub const fn new(x1: TSize, y1: TSize, x2: TSize, y2: TSize) -> Self
pub const fn from(p1: TPoint, p2: TPoint) -> Self
pub const fn is_vertical(&self) -> bool
pub const fn is_horizontal(&self) -> bool
pub const fn is_ascending(&self) -> bool
pub const fn is_descending(&self) -> bool
pub const fn is_constant(&self) -> bool
Sourcepub const fn iter_points(&self) -> PointIterator<Line2D<TSize>> ⓘ
pub const fn iter_points(&self) -> PointIterator<Line2D<TSize>> ⓘ
Interval = 1
Trait Implementations§
impl<T: Copy> Copy for Line2D<T>
impl<T: PartialEq> StructuralPartialEq for Line2D<T>
Auto Trait Implementations§
impl<T> Freeze for Line2D<T>where
T: Freeze,
impl<T> RefUnwindSafe for Line2D<T>where
T: RefUnwindSafe,
impl<T> Send for Line2D<T>where
T: Send,
impl<T> Sync for Line2D<T>where
T: Sync,
impl<T> Unpin for Line2D<T>where
T: Unpin,
impl<T> UnsafeUnpin for Line2D<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Line2D<T>where
T: UnwindSafe,
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