pub struct LineSegment2D {
pub start: Point2D,
pub end: Point2D,
}
Expand description
LineSegment2D, a line segment within 2D space
Fields§
§start: Point2D
§end: Point2D
Implementations§
Trait Implementations§
Source§impl Clone for LineSegment2D
impl Clone for LineSegment2D
Source§fn clone(&self) -> LineSegment2D
fn clone(&self) -> LineSegment2D
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LineSegment2D
impl Debug for LineSegment2D
Source§impl Display for LineSegment2D
impl Display for LineSegment2D
Source§impl HasBoundingBox2DMaybe for LineSegment2D
impl HasBoundingBox2DMaybe for LineSegment2D
Source§fn bounding_box_maybe(&self) -> Result<BoundingBox2D>
fn bounding_box_maybe(&self) -> Result<BoundingBox2D>
Should return the bounding box if it can be calculated
Source§impl HasCenterOfGravity2D for LineSegment2D
impl HasCenterOfGravity2D for LineSegment2D
Source§fn center_of_gravity(&self) -> Result<Point2D>
fn center_of_gravity(&self) -> Result<Point2D>
Should return the center of gravity
Source§impl HasLength for LineSegment2D
impl HasLength for LineSegment2D
Source§impl Hash for LineSegment2D
impl Hash for LineSegment2D
Source§impl IsMovable2D for LineSegment2D
impl IsMovable2D for LineSegment2D
Source§impl IsScalable for LineSegment2D
impl IsScalable for LineSegment2D
Source§impl PartialEq for LineSegment2D
impl PartialEq for LineSegment2D
Source§impl PartialOrd for LineSegment2D
impl PartialOrd for LineSegment2D
impl Eq for LineSegment2D
impl StructuralPartialEq for LineSegment2D
Auto Trait Implementations§
impl Freeze for LineSegment2D
impl RefUnwindSafe for LineSegment2D
impl Send for LineSegment2D
impl Sync for LineSegment2D
impl Unpin for LineSegment2D
impl UnwindSafe for LineSegment2D
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more