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]
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>, pub fn is_valid(&self) -> bool[src]
pub fn is_valid(&self) -> boolCheck if the line has consistent parameters.
pub fn matches(&self, other: &Self) -> bool[src]
pub fn matches(&self, other: &Self) -> boolCheck if two lines match each other.