We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd89004 commit 9598888Copy full SHA for 9598888
2 files changed
math/Matrix.h
@@ -175,6 +175,8 @@ struct TMat4 // Matrix4x4
175
176
void setRotation(const TVec3D<T> &v);
177
void setTranslation(const TVec3D<T> &v);
178
+ void setTranslationTransposed(const TVec3D<T>& v);
179
+
180
void translate(const TVec3D<T> &v);
181
182
const TVec3D<T>& getTranslationComponent() const;
math/Matrix.inl
@@ -172,6 +172,14 @@ inline void TMat4<T>::setTranslation(const TVec3D<T> &v)
172
rows[3][2] = v.z;
173
}
174
+template <typename T>
+inline void TMat4<T>::setTranslationTransposed(const TVec3D<T>& v)
+{
+ rows[0][3] = v.x;
+ rows[1][3] = v.y;
+ rows[2][3] = v.z;
+}
183
template <typename T>
184
inline void TMat4<T>::setRotation(const TVec3D<T> &v)
185
{
0 commit comments