Struct spatial_hasher::RotationAxis
source · pub struct RotationAxis {
pub x: f64,
pub y: f64,
pub z: f64,
}
Expand description
Represents a rotation axis in 3D space.
The RotationAxis
struct defines an axis of rotation using x
, y
, and z
components.
§Examples
use spatial_hasher::RotationAxis;
let axis = RotationAxis { x: 0.0, y: 1.0, z: 0.0 };
Fields§
§x: f64
§y: f64
§z: f64
Trait Implementations§
source§impl Clone for RotationAxis
impl Clone for RotationAxis
source§fn clone(&self) -> RotationAxis
fn clone(&self) -> RotationAxis
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)