[−][src]Struct line_2d::LineSegment
Fields
start: Coord
end: Coord
Methods
impl LineSegment
[src]
pub fn new(start: Coord, end: Coord) -> Self
[src]
pub fn delta(&self) -> Coord
[src]
pub fn num_steps(&self) -> usize
[src]
pub fn num_cardinal_steps(&self) -> usize
[src]
pub fn reverse(&self) -> Self
[src]
ⓘImportant traits for InfiniteIterpub fn infinite_iter(&self) -> InfiniteIter
[src]
ⓘImportant traits for InfiniteIter
ⓘImportant traits for InfiniteCardinalIterpub fn infinite_cardinal_iter(&self) -> InfiniteCardinalIter
[src]
ⓘImportant traits for InfiniteCardinalIter
ⓘImportant traits for InfiniteIterpub fn config_infinite_iter(&self, config: InfiniteConfig) -> InfiniteIter
[src]
ⓘImportant traits for InfiniteIter
ⓘImportant traits for InfiniteCardinalIterpub fn config_infinite_cardinal_iter(
&self,
config: InfiniteConfig
) -> InfiniteCardinalIter
[src]
ⓘImportant traits for InfiniteCardinalIter
&self,
config: InfiniteConfig
) -> InfiniteCardinalIter
ⓘImportant traits for Iterpub fn iter(&self) -> Iter
[src]
ⓘImportant traits for Iter
ⓘImportant traits for CardinalIterpub fn cardinal_iter(&self) -> CardinalIter
[src]
ⓘImportant traits for CardinalIter
ⓘImportant traits for Iterpub fn config_iter(&self, config: Config) -> Iter
[src]
ⓘImportant traits for Iter
ⓘImportant traits for CardinalIterpub fn config_cardinal_iter(&self, config: Config) -> CardinalIter
[src]
ⓘImportant traits for CardinalIter
Trait Implementations
impl Eq for LineSegment
[src]
impl Clone for LineSegment
[src]
fn clone(&self) -> LineSegment
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl PartialOrd<LineSegment> for LineSegment
[src]
fn partial_cmp(&self, other: &LineSegment) -> Option<Ordering>
[src]
fn lt(&self, other: &LineSegment) -> bool
[src]
fn le(&self, other: &LineSegment) -> bool
[src]
fn gt(&self, other: &LineSegment) -> bool
[src]
fn ge(&self, other: &LineSegment) -> bool
[src]
impl Ord for LineSegment
[src]
fn cmp(&self, other: &LineSegment) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<LineSegment> for LineSegment
[src]
fn eq(&self, other: &LineSegment) -> bool
[src]
fn ne(&self, other: &LineSegment) -> bool
[src]
impl Copy for LineSegment
[src]
impl Hash for LineSegment
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Debug for LineSegment
[src]
Auto Trait Implementations
impl Sync for LineSegment
impl Send for LineSegment
impl Unpin for LineSegment
impl UnwindSafe for LineSegment
impl RefUnwindSafe for LineSegment
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,