pub struct LineSegment {
pub start: Point,
pub end: Point,
}Expand description
A finite line segment
Fields§
§start: PointThe start point of the line segment
end: PointThe end point of the line segment
Implementations§
Trait Implementations§
Source§impl ClosestPoint<Line> for LineSegment
impl ClosestPoint<Line> for LineSegment
Source§fn closest_point(&self, other: &Line) -> Point
fn closest_point(&self, other: &Line) -> Point
The closest point to another object
Source§impl ClosestPoint<LineSegment> for LineSegment
impl ClosestPoint<LineSegment> for LineSegment
Source§fn closest_point(&self, other: &LineSegment) -> Point
fn closest_point(&self, other: &LineSegment) -> Point
The closest point to another object
Source§impl ClosestPoint<LineSegment> for Ray
impl ClosestPoint<LineSegment> for Ray
Source§fn closest_point(&self, other: &LineSegment) -> Point
fn closest_point(&self, other: &LineSegment) -> Point
The closest point to another object
Source§impl ClosestPoint<Point> for LineSegment
impl ClosestPoint<Point> for LineSegment
Source§fn closest_point(&self, other: &Point) -> Point
fn closest_point(&self, other: &Point) -> Point
The closest point to another object
Source§impl ClosestPoint<Ray> for LineSegment
impl ClosestPoint<Ray> for LineSegment
Source§fn closest_point(&self, other: &Ray) -> Point
fn closest_point(&self, other: &Ray) -> Point
The closest point to another object
Source§impl Collision<Triangle> for LineSegment
impl Collision<Triangle> for LineSegment
Source§impl Debug for LineSegment
impl Debug for LineSegment
Source§impl Distance<Line> for LineSegment
impl Distance<Line> for LineSegment
Source§impl Distance<LineSegment> for LineSegment
impl Distance<LineSegment> for LineSegment
Source§fn distance(&self, l: &LineSegment) -> f32
fn distance(&self, l: &LineSegment) -> f32
The distance between two objects
Source§impl Distance<LineSegment> for Ray
impl Distance<LineSegment> for Ray
Source§fn distance(&self, l: &LineSegment) -> f32
fn distance(&self, l: &LineSegment) -> f32
The distance between two objects
Source§impl Distance<Point> for LineSegment
impl Distance<Point> for LineSegment
Source§impl Distance<Ray> for LineSegment
impl Distance<Ray> for LineSegment
Source§impl Intersection<LineSegment> for Sphere
impl Intersection<LineSegment> for Sphere
Source§fn intersects(&self, line: &LineSegment) -> bool
fn intersects(&self, line: &LineSegment) -> bool
Whether this shape intersect with the other
Source§impl Intersection<LineSegment> for Triangle
impl Intersection<LineSegment> for Triangle
Source§fn intersects(&self, line: &LineSegment) -> bool
fn intersects(&self, line: &LineSegment) -> bool
Whether this shape intersect with the other
Source§impl Intersection<Sphere> for LineSegment
impl Intersection<Sphere> for LineSegment
Source§fn intersects(&self, sphere: &Sphere) -> bool
fn intersects(&self, sphere: &Sphere) -> bool
Whether this shape intersect with the other
Source§impl Intersection<Triangle> for LineSegment
impl Intersection<Triangle> for LineSegment
Source§fn intersects(&self, triangle: &Triangle) -> bool
fn intersects(&self, triangle: &Triangle) -> bool
Whether this shape intersect with the other
Auto Trait Implementations§
impl Freeze for LineSegment
impl RefUnwindSafe for LineSegment
impl Send for LineSegment
impl Sync for LineSegment
impl Unpin for LineSegment
impl UnwindSafe for LineSegment
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