pub struct Line {
pub slope: f64,
pub intercept: f64,
}Fields§
§slope: f64§intercept: f64Implementations§
Source§impl Line
impl Line
pub fn distance_from_origin(&self) -> f64
pub fn ray_length_until_intersect(&self, theta: f64) -> f64
Trait Implementations§
Source§impl PartialOrd for Line
impl PartialOrd for Line
impl Copy for Line
impl StructuralPartialEq for Line
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