Struct plane_split::Line
[−]
[src]
pub struct Line<T, U> {
pub origin: TypedPoint3D<T, U>,
pub dir: TypedVector3D<T, U>,
}A generic line.
Fields
origin: TypedPoint3D<T, U>
Arbitrary point on the line.
dir: TypedVector3D<T, U>
Normalized direction of the line.
Methods
impl<T, U> Line<T, U> where
T: Copy + One + Zero + ApproxEq<T> + Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T>, [src]
T: Copy + One + Zero + ApproxEq<T> + Add<T, Output = T> + Sub<T, Output = T> + Mul<T, Output = T>,
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.