pub struct RotationAxis {
pub x: f64,
pub y: f64,
pub z: f64,
}
Expand description
Fields§
§x: f64
The x-component of the rotation axis.
y: f64
The y-component of the rotation axis.
z: f64
The z-component of the rotation axis.
Trait Implementations§
Source§impl Clone for RotationAxis
impl Clone for RotationAxis
Source§fn clone(&self) -> RotationAxis
fn clone(&self) -> RotationAxis
Returns a duplicate 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 RotationAxis
impl Debug for RotationAxis
Source§impl<'de> Deserialize<'de> for RotationAxis
impl<'de> Deserialize<'de> for RotationAxis
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 Hash for RotationAxis
impl Hash for RotationAxis
Source§fn hash<H: Hasher>(&self, state: &mut H)
fn hash<H: Hasher>(&self, state: &mut H)
Hashes the RotationAxis
by writing the bit representations of its components into the provided hasher.
This method uses the to_bits()
function to obtain the raw memory representation of the floating-point numbers, ensuring consistent hashing.
§Arguments
state
- A mutable reference to a type implementing theHasher
trait.
Source§impl Serialize for RotationAxis
impl Serialize for RotationAxis
impl Copy for RotationAxis
Auto Trait Implementations§
impl Freeze for RotationAxis
impl RefUnwindSafe for RotationAxis
impl Send for RotationAxis
impl Sync for RotationAxis
impl Unpin for RotationAxis
impl UnwindSafe for RotationAxis
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