pub enum FittedShape {
Plane {
origin: [f64; 3],
normal: [f64; 3],
},
Sphere {
centre: [f64; 3],
radius: f64,
},
Cylinder {
point: [f64; 3],
axis: [f64; 3],
radius: f64,
},
Cone {
apex: [f64; 3],
axis: [f64; 3],
half_angle: f64,
},
Torus {
centre: [f64; 3],
axis: [f64; 3],
major: f64,
minor: f64,
},
Circle {
centre: [f64; 3],
normal: [f64; 3],
radius: f64,
},
Line {
point: [f64; 3],
direction: [f64; 3],
},
}Expand description
A fitted shape, in the request’s frame. Directions are unit length.
Variants§
Trait Implementations§
Source§impl Clone for FittedShape
impl Clone for FittedShape
Source§impl Debug for FittedShape
impl Debug for FittedShape
Source§impl<'de> Deserialize<'de> for FittedShape
impl<'de> Deserialize<'de> for FittedShape
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 FittedShape
impl PartialEq for FittedShape
Source§impl Serialize for FittedShape
impl Serialize for FittedShape
impl StructuralPartialEq for FittedShape
Auto Trait Implementations§
impl Forget for FittedShape
impl Freeze for FittedShape
impl RefUnwindSafe for FittedShape
impl Send for FittedShape
impl Sync for FittedShape
impl Unpin for FittedShape
impl UnsafeUnpin for FittedShape
impl UnwindSafe for FittedShape
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