Struct bevy_math::primitives::Sphere
source · pub struct Sphere {
pub radius: f32,
}
Expand description
A sphere primitive
Fields§
§radius: f32
The radius of the sphere
Implementations§
Trait Implementations§
source§impl Bounded3d for Sphere
impl Bounded3d for Sphere
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 Sphere
impl<'de> Deserialize<'de> for Sphere
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 Sphere
impl PartialEq for Sphere
impl Copy for Sphere
impl Primitive3d for Sphere
impl StructuralPartialEq for Sphere
Auto Trait Implementations§
impl RefUnwindSafe for Sphere
impl Send for Sphere
impl Sync for Sphere
impl Unpin for Sphere
impl UnwindSafe for Sphere
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