pub enum Shape {
Box(Vector3<f32>),
Cylinder(CylinderShape),
Sphere(f32),
Torus(TorusShape),
}Expand description
The shape of a given field.
Variants§
Box(Vector3<f32>)
Box with a given size in meters
Cylinder(CylinderShape)
Cylinder aligned to the XZ plane
Sphere(f32)
Sphere with a given radius in meters
Torus(TorusShape)
Torus aligned to the XZ plane
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Shape
impl<'de> Deserialize<'de> for Shape
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
impl StructuralPartialEq for Shape
Auto Trait Implementations§
impl Freeze for Shape
impl RefUnwindSafe for Shape
impl Send for Shape
impl Sync for Shape
impl Unpin for Shape
impl UnwindSafe for Shape
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