Matrix4: Fix GetColumn and GetRow code
This commit is contained in:
parent
f867c20c7c
commit
e59bd4ba35
|
|
@ -242,7 +242,7 @@ namespace Nz
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
T* ptr = (&m11) + column*4;
|
const T* ptr = (&m11) + column*4;
|
||||||
return Vector4<T>(ptr);
|
return Vector4<T>(ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -636,7 +636,7 @@ namespace Nz
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
T* ptr = &m11;
|
const T* ptr = &m11;
|
||||||
return Vector4<T>(ptr[row], ptr[row+4], ptr[row+8], ptr[row+12]);
|
return Vector4<T>(ptr[row], ptr[row+4], ptr[row+8], ptr[row+12]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue