Struct bevy_math::primitives::Cylinder
source · pub struct Cylinder {
pub radius: f32,
pub half_height: f32,
}
Expand description
A cylinder primitive
Fields§
§radius: f32
The radius of the cylinder
half_height: f32
The half height of the cylinder
Implementations§
Trait Implementations§
source§impl Bounded3d for Cylinder
impl Bounded3d for Cylinder
source§fn aabb_3d(&self, translation: Vec3, rotation: Quat) -> Aabb3d
fn aabb_3d(&self, translation: Vec3, rotation: Quat) -> Aabb3d
Get an axis-aligned bounding box for the shape with the given translation and rotation
source§fn bounding_sphere(&self, translation: Vec3, _rotation: Quat) -> BoundingSphere
fn bounding_sphere(&self, translation: Vec3, _rotation: Quat) -> BoundingSphere
Get a bounding sphere for the shape with the given translation and rotation
source§impl<'de> Deserialize<'de> for Cylinder
impl<'de> Deserialize<'de> for Cylinder
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 Cylinder
impl PartialEq for Cylinder
impl Copy for Cylinder
impl Primitive3d for Cylinder
impl StructuralPartialEq for Cylinder
Auto Trait Implementations§
impl RefUnwindSafe for Cylinder
impl Send for Cylinder
impl Sync for Cylinder
impl Unpin for Cylinder
impl UnwindSafe for Cylinder
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