MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / affineTransform

Method affineTransform

source/game/StarNetworkedAnimator.cpp:984–990  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982}
983
984Mat3F 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
992void NetworkedAnimator::TransformationGroup::setAffineTransform(Mat3F const& matrix) {
993 xTranslation.set(matrix[0][2]);

Calls 1

getMethod · 0.45

Tested by

no test coverage detected