pub struct TileXY { /* private fields */ }Expand description
This hasher tiles X and Y coordinate axes. Frequencies are rounded to the nearest positive integer.
Trait Implementations
sourceimpl Hasher for TileXY
impl Hasher for TileXY
sourcefn query(&self, seed: u64, frequency: f32, point: Vec3a) -> Basis
fn query(&self, seed: u64, frequency: f32, point: Vec3a) -> Basis
Builds a grid around a point. The seed is texture specific.
sourcefn hash_x(&self, basis: &Basis, current: u64, dx: i32) -> u64
fn hash_x(&self, basis: &Basis, current: u64, dx: i32) -> u64
Hashes X coordinate. Supply any previous coordinate hashes in the previous argument.
sourcefn hash_y(&self, basis: &Basis, current: u64, dy: i32) -> u64
fn hash_y(&self, basis: &Basis, current: u64, dy: i32) -> u64
Hashes Y coordinate. Supply any previous coordinate hashes in the previous argument.
Auto Trait Implementations
impl RefUnwindSafe for TileXY
impl Send for TileXY
impl Sync for TileXY
impl Unpin for TileXY
impl UnwindSafe for TileXY
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more