forked from M-Labs/nalgebra
Merge remote-tracking branch 'origin/scale' into scale
This commit is contained in:
commit
866cabaa28
@ -18,14 +18,14 @@ macro_rules! deref_impl(
|
|||||||
|
|
||||||
#[inline]
|
#[inline]
|
||||||
fn deref(&self) -> &Self::Target {
|
fn deref(&self) -> &Self::Target {
|
||||||
unsafe { &*(self as *const Scale<T, $D> as *const Self::Target) }
|
self.vector.deref()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<T: Scalar> DerefMut for Scale<T, $D> {
|
impl<T: Scalar> DerefMut for Scale<T, $D> {
|
||||||
#[inline]
|
#[inline]
|
||||||
fn deref_mut(&mut self) -> &mut Self::Target {
|
fn deref_mut(&mut self) -> &mut Self::Target {
|
||||||
unsafe { &mut *(self as *mut Scale<T, $D> as *mut Self::Target) }
|
self.vector.deref_mut()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user