pub enum ProbeAnswer {
Face {
point: [f64; 3],
normal: [f64; 3],
surface: FaceSurface,
},
Edge {
point: [f64; 3],
direction: [f64; 3],
start: [f64; 3],
end: [f64; 3],
middle: [f64; 3],
circle: Option<ProbedCircle>,
along: Option<([f64; 3], [f64; 3])>,
},
Mass {
centre: [f64; 3],
axes: [[f64; 3]; 3],
},
}Expand description
What a solid answers to a ShapeProbe, in the solid’s own frame.
Variants§
Face
The point of the face nearest the probe’s, the face’s outward normal there, and the face’s surface.
Edge
The point of the edge nearest the probe’s and the way the edge runs there, its two ends and its middle (halfway along its parameter, which is halfway along an arc), and the circle it runs round when it is a circle or an arc of one.
Fields
§
circle: Option<ProbedCircle>Mass
The centre of mass and the principal axes of inertia, the axis of the smallest moment first.
Trait Implementations§
Source§impl Clone for ProbeAnswer
impl Clone for ProbeAnswer
impl Copy for ProbeAnswer
Source§impl Debug for ProbeAnswer
impl Debug for ProbeAnswer
Source§impl<'de> Deserialize<'de> for ProbeAnswer
impl<'de> Deserialize<'de> for ProbeAnswer
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 ProbeAnswer
impl PartialEq for ProbeAnswer
Source§impl Serialize for ProbeAnswer
impl Serialize for ProbeAnswer
impl StructuralPartialEq for ProbeAnswer
Auto Trait Implementations§
impl Forget for ProbeAnswer
impl Freeze for ProbeAnswer
impl Move for ProbeAnswer
impl RefUnwindSafe for ProbeAnswer
impl Send for ProbeAnswer
impl Sync for ProbeAnswer
impl Unpin for ProbeAnswer
impl UnsafeUnpin for ProbeAnswer
impl UnwindSafe for ProbeAnswer
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