[−][src]Struct rust_3d::LineSegment2D
LineSegment2D, a line segment within 2D space
Fields
start: Point2D
end: Point2D
Implementations
impl LineSegment2D
[src]
pub fn new(start: Point2D, end: Point2D) -> Self
[src]
Creates a new LineSegment2D from a start and end Point
Trait Implementations
impl Clone for LineSegment2D
[src]
fn clone(&self) -> LineSegment2D
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for LineSegment2D
[src]
impl Display for LineSegment2D
[src]
impl Eq for LineSegment2D
[src]
impl HasBoundingBox2DMaybe for LineSegment2D
[src]
fn bounding_box_maybe(&self) -> Result<BoundingBox2D>
[src]
impl HasCenterOfGravity2D for LineSegment2D
[src]
fn center_of_gravity(&self) -> Result<Point2D>
[src]
impl HasLength for LineSegment2D
[src]
impl Hash for LineSegment2D
[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 IsMatrix3Transformable for LineSegment2D
[src]
impl IsMovable2D for LineSegment2D
[src]
impl IsScalable for LineSegment2D
[src]
impl PartialEq<LineSegment2D> for LineSegment2D
[src]
fn eq(&self, other: &LineSegment2D) -> bool
[src]
fn ne(&self, other: &LineSegment2D) -> bool
[src]
impl PartialOrd<LineSegment2D> for LineSegment2D
[src]
fn partial_cmp(&self, other: &LineSegment2D) -> Option<Ordering>
[src]
fn lt(&self, other: &LineSegment2D) -> bool
[src]
fn le(&self, other: &LineSegment2D) -> bool
[src]
fn gt(&self, other: &LineSegment2D) -> bool
[src]
fn ge(&self, other: &LineSegment2D) -> bool
[src]
impl StructuralEq for LineSegment2D
[src]
impl StructuralPartialEq for LineSegment2D
[src]
Auto Trait Implementations
impl RefUnwindSafe for LineSegment2D
impl Send for LineSegment2D
impl Sync for LineSegment2D
impl Unpin for LineSegment2D
impl UnwindSafe for LineSegment2D
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,