| 982 | } |
| 983 | |
| 984 | Mat3F NetworkedAnimator::TransformationGroup::affineTransform() const { |
| 985 | return Mat3F( |
| 986 | xScale.get() * cos(xShear.get()), xScale.get() * sin(xShear.get()), xTranslation.get(), |
| 987 | yScale.get() * sin(yShear.get()), yScale.get() * cos(yShear.get()), yTranslation.get(), |
| 988 | 0, 0, 1 |
| 989 | ); |
| 990 | } |
| 991 | |
| 992 | void NetworkedAnimator::TransformationGroup::setAffineTransform(Mat3F const& matrix) { |
| 993 | xTranslation.set(matrix[0][2]); |
no test coverage detected