Struct bevy_math::primitives::ConicalFrustum
source · pub struct ConicalFrustum {
pub radius_top: f32,
pub radius_bottom: f32,
pub height: f32,
}
Expand description
A conical frustum primitive. A conical frustum can be created by slicing off a section of a cone.
Fields§
§radius_top: f32
The radius of the top of the frustum
radius_bottom: f32
The radius of the base of the frustum
height: f32
The height of the frustum
Trait Implementations§
source§impl Bounded3d for ConicalFrustum
impl Bounded3d for ConicalFrustum
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 Clone for ConicalFrustum
impl Clone for ConicalFrustum
source§fn clone(&self) -> ConicalFrustum
fn clone(&self) -> ConicalFrustum
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConicalFrustum
impl Debug for ConicalFrustum
source§impl<'de> Deserialize<'de> for ConicalFrustum
impl<'de> Deserialize<'de> for ConicalFrustum
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 ConicalFrustum
impl PartialEq for ConicalFrustum
source§fn eq(&self, other: &ConicalFrustum) -> bool
fn eq(&self, other: &ConicalFrustum) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ConicalFrustum
impl Serialize for ConicalFrustum
impl Copy for ConicalFrustum
impl Primitive3d for ConicalFrustum
impl StructuralPartialEq for ConicalFrustum
Auto Trait Implementations§
impl RefUnwindSafe for ConicalFrustum
impl Send for ConicalFrustum
impl Sync for ConicalFrustum
impl Unpin for ConicalFrustum
impl UnwindSafe for ConicalFrustum
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