commit x64 compilation from lulu cause the other branch dont seems to compile properly at home

This commit is contained in:
2026-07-17 16:08:20 +02:00
parent c0f3eeb00d
commit 0efa4ee6f7
625 changed files with 117283 additions and 4426 deletions

View File

@ -0,0 +1,46 @@
/* -----------------------------------------------------------------------------
GSFramework
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
----------------------------------------------------------------------------- */
#include "geometry/plane.h"
#include "math/matrix4.h"
using namespace GS;
//------------------------------------------------------------------------------
void Plane::Set(const Vector4 *_p, const Vector4 &_n, const Matrix4 *mtx)
{
if (mtx)
{
if (_p)
mtx->Apply(&p, _p);
else p = mtx->GetRow(3);
mtx->ApplyRotation(&n, &_n);
}
else
{
if (_p)
p = *_p;
else p.Set(0, 0, 0, 1);
n = _n;
}
d = -p.Dot(n);
}
void Plane::Set(const Vector4 _p[3], const Matrix4 *mtx)
{
Vector4 _n = (_p[1] - _p[0]).Cross(_p[2] - _p[0]);
Set(&_p[0], _n, mtx);
}
//------------------------------------------------------------------------------
//------------------------------------------------------------------------------
Plane::Plane()
{
d = 0;
p.Set();
n.Set();
}
//------------------------------------------------------------------------------