pub struct CentreLine {
pub points: Vec<[f64; 3]>,
pub length: f64,
pub deviation: f64,
pub straight: bool,
}Expand description
The centre line of a pipe-like solid between two of its faces.
Fields§
§points: Vec<[f64; 3]>Points along it, from the first face to the second, in the shape’s frame.
length: f64Its length, in millimetres.
deviation: f64The largest distance measured from the centroid of a section cut square to the line to the line itself.
straight: boolIt is one straight segment.
Trait Implementations§
Source§impl Clone for CentreLine
impl Clone for CentreLine
Source§impl Debug for CentreLine
impl Debug for CentreLine
Source§impl<'de> Deserialize<'de> for CentreLine
impl<'de> Deserialize<'de> for CentreLine
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CentreLine
impl PartialEq for CentreLine
Source§impl Serialize for CentreLine
impl Serialize for CentreLine
impl StructuralPartialEq for CentreLine
Auto Trait Implementations§
impl Forget for CentreLine
impl Freeze for CentreLine
impl Move for CentreLine
impl RefUnwindSafe for CentreLine
impl Send for CentreLine
impl Sync for CentreLine
impl Unpin for CentreLine
impl UnsafeUnpin for CentreLine
impl UnwindSafe for CentreLine
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