[−][src]Struct building_blocks_storage::array::Local
Map-local coordinates.
Most commonly, you will index a lattice map with a PointN<N>
, which is assumed to be in global
coordinates. Local<N>
only applies to lattice maps where a point must first be translated from
global coordinates into map-local coordinates before indexing with Get<Local<N>>
.
Implementations
impl<N> Local<N>
[src]
pub fn localize_points(points: &[PointN<N>]) -> Vec<Local<N>> where
PointN<N>: Clone,
[src]
PointN<N>: Clone,
Wraps all of the points
using the Local
constructor.
Methods from Deref<Target = PointN<N>>
pub fn vector_div_floor(&self, rhs: &PointN<[T; 2]>) -> PointN<[T; 2]>
[src]
pub fn scalar_div_floor(&self, rhs: T) -> PointN<[T; 2]>
[src]
pub fn x(&self) -> T
[src]
pub fn y(&self) -> T
[src]
pub fn z(&self) -> T
[src]
pub fn xy(&self) -> PointN<[T; 2]>
[src]
pub fn yx(&self) -> PointN<[T; 2]>
[src]
pub fn yz(&self) -> PointN<[T; 2]>
[src]
pub fn zy(&self) -> PointN<[T; 2]>
[src]
pub fn zx(&self) -> PointN<[T; 2]>
[src]
pub fn xz(&self) -> PointN<[T; 2]>
[src]
pub fn yzx(&self) -> PointN<[T; 3]>
[src]
pub fn zxy(&self) -> PointN<[T; 3]>
[src]
pub fn zyx(&self) -> PointN<[T; 3]>
[src]
pub fn vector_div_floor(&self, rhs: &PointN<[T; 3]>) -> PointN<[T; 3]>
[src]
pub fn scalar_div_floor(&self, rhs: T) -> PointN<[T; 3]>
[src]
Trait Implementations
impl<N> Deref for Local<N>
[src]
type Target = PointN<N>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<N, T, '_> Get<&'_ Local<N>> for ArrayN<N, T> where
T: Clone,
Self: Array<N> + Get<Stride, Data = T>,
[src]
T: Clone,
Self: Array<N> + Get<Stride, Data = T>,
impl<N, T, '_> GetMut<&'_ Local<N>> for ArrayN<N, T> where
Self: Array<N> + GetMut<Stride, Data = T>,
[src]
Self: Array<N> + GetMut<Stride, Data = T>,
impl<N, T, '_> GetUnchecked<&'_ Local<N>> for ArrayN<N, T> where
T: Clone,
Self: Array<N> + GetUnchecked<Stride, Data = T>,
[src]
T: Clone,
Self: Array<N> + GetUnchecked<Stride, Data = T>,
type Data = T
unsafe fn get_unchecked(&self, p: &Local<N>) -> Self::Data
[src]
impl<N, T, '_> GetUncheckedMut<&'_ Local<N>> for ArrayN<N, T> where
Self: Array<N> + GetUncheckedMut<Stride, Data = T>,
[src]
Self: Array<N> + GetUncheckedMut<Stride, Data = T>,
type Data = T
unsafe fn get_unchecked_mut(&mut self, p: &Local<N>) -> &mut Self::Data
[src]
Auto Trait Implementations
impl<N> RefUnwindSafe for Local<N> where
N: RefUnwindSafe,
N: RefUnwindSafe,
impl<N> Send for Local<N> where
N: Send,
N: Send,
impl<N> Sync for Local<N> where
N: Sync,
N: Sync,
impl<N> Unpin for Local<N> where
N: Unpin,
N: Unpin,
impl<N> UnwindSafe for Local<N> where
N: UnwindSafe,
N: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,