pub struct ConeSurface {
pub apex: Vec3,
pub axis: Vec3,
pub half_angle: f64,
}Expand description
One nappe of a right circular cone.
Fields§
§apex: Vec3The cone apex.
axis: Vec3Unit axis directed into the represented nappe.
half_angle: f64Angle between the axis and surface generators, in radians.
Trait Implementations§
Source§impl Clone for ConeSurface
impl Clone for ConeSurface
Source§fn clone(&self) -> ConeSurface
fn clone(&self) -> ConeSurface
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 ConeSurface
Source§impl Debug for ConeSurface
impl Debug for ConeSurface
Source§impl<'de> Deserialize<'de> for ConeSurface
impl<'de> Deserialize<'de> for ConeSurface
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 ConeSurface
impl PartialEq for ConeSurface
Source§impl Serialize for ConeSurface
impl Serialize for ConeSurface
impl StructuralPartialEq for ConeSurface
Auto Trait Implementations§
impl Freeze for ConeSurface
impl RefUnwindSafe for ConeSurface
impl Send for ConeSurface
impl Sync for ConeSurface
impl Unpin for ConeSurface
impl UnsafeUnpin for ConeSurface
impl UnwindSafe for ConeSurface
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