Struct plane_split::Line
[−]
[src]
pub struct Line<T, U> { pub origin: TypedPoint3D<T, U>, pub dir: TypedPoint3D<T, U>, }
A generic line.
Fields
origin: TypedPoint3D<T, U>
Arbitrary point on the line.
dir: TypedPoint3D<T, U>
Normalized direction of the line.
Methods
impl<T: Copy + One + Zero + PartialEq + ApproxEq<T> + Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T>, U> Line<T, U>
[src]
fn is_valid(&self) -> bool
Check if the line has consistent parameters.
fn matches(&self, other: &Self) -> bool
Check if two lines match each other.