pub struct Line {
pub point: Point,
pub direction: Vector3,
}
Expand description
An infinite line.
Fields§
§point: Point
An arbitrary point on the line.
direction: Vector3
The direction of the line.
Implementations§
Trait Implementations§
Source§impl ClosestPoint<Line> for Line
impl ClosestPoint<Line> for Line
Source§fn closest_point(&self, other: &Line) -> Point
fn closest_point(&self, other: &Line) -> Point
The closest point to another object
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<Line> for Ray
impl ClosestPoint<Line> for Ray
Source§fn closest_point(&self, other: &Line) -> Point
fn closest_point(&self, other: &Line) -> Point
The closest point to another object
Source§impl ClosestPoint<Point> for Line
impl ClosestPoint<Point> for Line
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 Line
impl ClosestPoint<Ray> for Line
Source§fn closest_point(&self, other: &Ray) -> Point
fn closest_point(&self, other: &Ray) -> Point
The closest point to another object
Source§impl Distance<Line> for LineSegment
impl Distance<Line> for LineSegment
Auto Trait Implementations§
impl Freeze for Line
impl RefUnwindSafe for Line
impl Send for Line
impl Sync for Line
impl Unpin for Line
impl UnwindSafe for Line
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