pub struct TorusSurface {
pub center: Vec3,
pub axis: Vec3,
pub major_radius: f64,
pub minor_radius: f64,
}Expand description
A circular torus represented by its center, axis, and radii.
Fields§
§center: Vec3Center of the torus’s generating circle.
axis: Vec3Unit normal of the generating circle’s plane.
major_radius: f64Radius from center to the centerline of the tube.
minor_radius: f64Radius of the torus tube.
Trait Implementations§
Source§impl Clone for TorusSurface
impl Clone for TorusSurface
Source§fn clone(&self) -> TorusSurface
fn clone(&self) -> TorusSurface
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 TorusSurface
Source§impl Debug for TorusSurface
impl Debug for TorusSurface
Source§impl<'de> Deserialize<'de> for TorusSurface
impl<'de> Deserialize<'de> for TorusSurface
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 TorusSurface
impl PartialEq for TorusSurface
Source§impl Serialize for TorusSurface
impl Serialize for TorusSurface
impl StructuralPartialEq for TorusSurface
Auto Trait Implementations§
impl Freeze for TorusSurface
impl RefUnwindSafe for TorusSurface
impl Send for TorusSurface
impl Sync for TorusSurface
impl Unpin for TorusSurface
impl UnsafeUnpin for TorusSurface
impl UnwindSafe for TorusSurface
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