PeriDyno 1.0.0
Loading...
Searching...
No Matches
Transform3x3.inl
Go to the documentation of this file.
1#include <cmath>
2#include <limits>
3
4#include "Vector.h"
5
6namespace dyno
7{
8 template <typename T>
15
16 template <typename T>
18 {
19 mTranslation = t;
20 mScale = s;
21 mRotation = M;
22 }
23
24 template <typename T>
26 {
27 mRotation = t.mRotation;
28 mTranslation = t.mTranslation;
29 mScale = t.mScale;
30 }
31
32 template <typename T>
34 {
35
36 }
37
38 template <typename T>
39 DYN_FUNC const Vector<T, 3> Transform<T, 3>::operator* (const Vector<T, 3> &vec) const
40 {
41 Vector<T, 3> scaled = Vector<T, 3>(vec.x*mScale.x, vec.y*mScale.y, vec.z*mScale.z);
42 return mRotation * scaled + mTranslation;
43 }
44}
SquareMatrix< T, 3 > mRotation
Vector< T, 3 > mTranslation
Vector< T, 3 > mScale
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25
#define M(X, Y)
Definition vgMath.h:291