pub struct Segment<S: Scalar> {
pub s: Point<S>,
pub e: Point<S>,
}
Fields§
§s: Point<S>
§e: Point<S>
Implementations§
Source§impl<S: Scalar> Segment<S>
impl<S: Scalar> Segment<S>
pub fn new(s: Point<S>, e: Point<S>) -> Self
pub fn from_segment(l: Segment<S>) -> Self
pub fn translate_x(&mut self, dx: S)
pub fn translate_y(&mut self, dy: S)
Trait Implementations§
impl<S: Copy + Scalar> Copy for Segment<S>
Auto Trait Implementations§
impl<S> Freeze for Segment<S>where
S: Freeze,
impl<S> RefUnwindSafe for Segment<S>where
S: RefUnwindSafe,
impl<S> Send for Segment<S>
impl<S> Sync for Segment<S>where
S: Sync,
impl<S> Unpin for Segment<S>where
S: Unpin,
impl<S> UnwindSafe for Segment<S>where
S: 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