Struct BuoyancySphere
#[repr(C)]pub struct BuoyancySphere {
pub offset: [f32; 3],
pub radius: f32,
pub volume: f32,
}Expand description
Sphere element of an Archimedes buoyancy hull.
Fields§
§offset: [f32; 3]Relative offset [rx, ry, rz] from entity origin (feet).
radius: f32Radius in meters.
volume: f32Sphere volume in m³: $\frac{4}{3} \pi r^3$.
Implementations§
§impl BuoyancySphere
impl BuoyancySphere
pub fn new(offset: [f32; 3], radius: f32) -> BuoyancySphere
Trait Implementations§
§impl Clone for BuoyancySphere
impl Clone for BuoyancySphere
§fn clone(&self) -> BuoyancySphere
fn clone(&self) -> BuoyancySphere
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BuoyancySphere
§impl Debug for BuoyancySphere
impl Debug for BuoyancySphere
§impl PartialEq for BuoyancySphere
impl PartialEq for BuoyancySphere
impl StructuralPartialEq for BuoyancySphere
Auto Trait Implementations§
impl Freeze for BuoyancySphere
impl RefUnwindSafe for BuoyancySphere
impl Send for BuoyancySphere
impl Sync for BuoyancySphere
impl Unpin for BuoyancySphere
impl UnsafeUnpin for BuoyancySphere
impl UnwindSafe for BuoyancySphere
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