Код: Выделить всё
struct Rect
{
Rect()
:position(glm::vec3(0.0f, 0.0f, 0.0f)),
rotation(glm::vec4(0.0f, 0.0f, 0.0f, 1.0f)),
length(0.0f),
width(0.0f)
{}
glm::vec3 position;
// A quat
glm::vec4 rotation;
float length, width;
void printCoords() const noexcept
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78686777/how-to-properly-rotate-a-position-by-a-quaternion[/url]