Replaced all remaining ocurences of from_homogeneous by from

This commit is contained in:
Sébastien Crozet 2013-07-23 23:28:02 +02:00
parent 321574a827
commit 6cf8db0926
3 changed files with 4 additions and 4 deletions

View File

@ -279,9 +279,9 @@ ToHomogeneous<M2> for Transform<M, V>
impl<M: Column<V> + Dim, M2: FromHomogeneous<M>, V>
FromHomogeneous<M> for Transform<M2, V>
{
fn from_homogeneous(m: &M) -> Transform<M2, V>
fn from(m: &M) -> Transform<M2, V>
{
Transform::new(FromHomogeneous::from_homogeneous(m),
Transform::new(FromHomogeneous::from(m),
m.column(Dim::dim::<M>() - 1))
}
}

View File

@ -399,7 +399,7 @@ macro_rules! from_homogeneous_impl(
($t: ident, $t2: ident, $dim: expr, $dim2: expr) => (
impl<N: One + Zero + Clone> FromHomogeneous<$t2<N>> for $t<N>
{
fn from_homogeneous(m: &$t2<N>) -> $t<N>
fn from(m: &$t2<N>) -> $t<N>
{
let mut res: $t<N> = One::one();

View File

@ -412,7 +412,7 @@ macro_rules! from_homogeneous_impl(
($t: ident, $t2: ident, $extra: ident, $comp0: ident $(,$compN: ident)*) => (
impl<N: Clone + Div<N, N> + One + Zero> FromHomogeneous<$t2<N>> for $t<N>
{
fn from_homogeneous(v: &$t2<N>) -> $t<N>
fn from(v: &$t2<N>) -> $t<N>
{
let mut res: $t<N> = Zero::zero();