FloatingPointMatrix3x2<T> FloatingPointMatrix3x2<T>::CreateRotation(const Radian<T>& angle) { FloatingPointMatrix3x2 result; CreateRotation(angle, result); return std::move(result); }
/* Rotate matrix. * ARGUMENTS: * - rotation angle in degrees * float angle; * - rotation vector * Vec &radVec; * RETURNS: * - rotated matrix * Matrix &; */ Matrix &Matrix::Rotate( float angle, Vec &radVec ) { Matrix temp = CreateRotation(angle, radVec); temp *= *this; *this = temp; return *this; } /* End of 'Rotate' function */
Matrix Matrix::CreateRotation(const Vector3& rotate) { return CreateRotation(rotate.X, rotate.Y, rotate.Z); }
Matrix4x4 Matrix4x4::CreateRotation( const CPPEngine::Vector3& rotation, bool radians ) { return CreateRotation( rotation.X, rotation.Y, rotation.Z, radians ); }