pub struct LineSegment3D {
pub start: Point3D,
pub end: Point3D,
}
Expand description
LineSegment3D, a line segment within 3D space
Fields§
§start: Point3D
§end: Point3D
Implementations§
Trait Implementations§
Source§impl Clone for LineSegment3D
impl Clone for LineSegment3D
Source§fn clone(&self) -> LineSegment3D
fn clone(&self) -> LineSegment3D
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 LineSegment3D
impl Debug for LineSegment3D
Source§impl Display for LineSegment3D
impl Display for LineSegment3D
Source§impl HasBoundingBox3DMaybe for LineSegment3D
impl HasBoundingBox3DMaybe for LineSegment3D
Source§fn bounding_box_maybe(&self) -> Result<BoundingBox3D>
fn bounding_box_maybe(&self) -> Result<BoundingBox3D>
Should return the bounding box if it can be calculated
Source§impl HasCenterOfGravity3D for LineSegment3D
impl HasCenterOfGravity3D for LineSegment3D
Source§fn center_of_gravity(&self) -> Result<Point3D>
fn center_of_gravity(&self) -> Result<Point3D>
Should return the center of gravity
Source§impl HasLength for LineSegment3D
impl HasLength for LineSegment3D
Source§impl Hash for LineSegment3D
impl Hash for LineSegment3D
Source§impl IsMovable3D for LineSegment3D
impl IsMovable3D for LineSegment3D
Source§impl IsScalable for LineSegment3D
impl IsScalable for LineSegment3D
Source§impl PartialEq for LineSegment3D
impl PartialEq for LineSegment3D
Source§impl PartialOrd for LineSegment3D
impl PartialOrd for LineSegment3D
impl Eq for LineSegment3D
impl StructuralPartialEq for LineSegment3D
Auto Trait Implementations§
impl Freeze for LineSegment3D
impl RefUnwindSafe for LineSegment3D
impl Send for LineSegment3D
impl Sync for LineSegment3D
impl Unpin for LineSegment3D
impl UnwindSafe for LineSegment3D
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