pub struct Line { /* private fields */ }Expand description
Representation of a line in 3D space that continues infinitely in both directions.
Implementations§
source§impl Line
impl Line
sourcepub fn point_at_distance(&self, distance: f32) -> Point3
pub fn point_at_distance(&self, distance: f32) -> Point3
Gets the point at the specified distance on the line
A value of 0 for the distance will return the origin of the line.
§Parameters
distance- The distance along the line to get the point at
sourcepub fn distance_to(&self, point: &Point3) -> f32
pub fn distance_to(&self, point: &Point3) -> f32
sourcepub fn contains_point(&self, point: &Point3) -> bool
pub fn contains_point(&self, point: &Point3) -> bool
Trait Implementations§
source§impl Intersects<AABB> for Line
impl Intersects<AABB> for Line
source§impl Intersects<Line> for AABB
impl Intersects<Line> for AABB
source§impl Intersects<Line> for Sphere
impl Intersects<Line> for Sphere
source§impl Intersects<Sphere> for Line
impl Intersects<Sphere> for Line
source§impl Intersects for Line
impl Intersects for Line
source§fn intersects(&self, other: &Self) -> bool
fn intersects(&self, other: &Self) -> bool
Determines if this object intersects with another object. Read more
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