mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
improve some things
This commit is contained in:
parent
f7067644a3
commit
0f5aae8b98
5 changed files with 10 additions and 10 deletions
|
@ -1661,7 +1661,7 @@ inline void CMatrix4<T>::getTransposed(CMatrix4<T> &o) const
|
|||
}
|
||||
|
||||
template <class T>
|
||||
std::ostream& operator<<(std::ostream& os, const CMatrix4<T>& matrix)
|
||||
inline std::ostream& operator<<(std::ostream& os, const CMatrix4<T>& matrix)
|
||||
{
|
||||
os << "(\n";
|
||||
for (int row = 0; row < 4; ++row) {
|
||||
|
|
|
@ -217,7 +217,7 @@ public:
|
|||
f32 W; // real part
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream& os, const quaternion& q)
|
||||
inline std::ostream& operator<<(std::ostream& os, const quaternion& q)
|
||||
{
|
||||
os << q.X << "\t" << q.Y << "\t" << q.Z << "\t" << q.W;
|
||||
return os;
|
||||
|
|
|
@ -2,21 +2,20 @@
|
|||
// SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
// Copyright (C) 2025 Lars Müller
|
||||
|
||||
#include "common/c_converter.h"
|
||||
#include "irrTypes.h"
|
||||
#include "irr_v3d.h"
|
||||
#include "lua_api/l_rotation.h"
|
||||
#include "matrix4.h"
|
||||
#include "quaternion.h"
|
||||
|
||||
#include "lua_api/l_matrix4.h"
|
||||
#include "common/c_packer.h"
|
||||
#include "lua_api/l_rotation.h"
|
||||
#include "lua_api/l_internal.h"
|
||||
#include "quaternion.h"
|
||||
#include "common/c_packer.h"
|
||||
#include "common/c_converter.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <lauxlib.h>
|
||||
#include <lua.h>
|
||||
#include <luajit-2.1/lauxlib.h>
|
||||
#include <sstream>
|
||||
|
||||
template<int MAX>
|
||||
|
|
|
@ -4,9 +4,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "lua_api/l_base.h"
|
||||
#include "matrix4.h"
|
||||
#include <lua.h>
|
||||
|
||||
#include "lua_api/l_base.h"
|
||||
|
||||
class LuaMatrix4 : public ModApiBase
|
||||
{
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
#pragma once
|
||||
|
||||
#include "irr_v3d.h"
|
||||
#include "lua_api/l_base.h"
|
||||
#include "quaternion.h"
|
||||
|
||||
#include "lua_api/l_base.h"
|
||||
|
||||
class LuaRotation : public ModApiBase
|
||||
{
|
||||
private:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue