mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 00:09:18 +02:00
maintenance: removed deprecated files, linux friendly include names
This commit is contained in:
54
old/geometry.h
Normal file
54
old/geometry.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
This Source Code Form is subject to the
|
||||
terms of the Mozilla Public License, v.
|
||||
2.0. If a copy of the MPL was not
|
||||
distributed with this file, You can
|
||||
obtain one at
|
||||
http://mozilla.org/MPL/2.0/.
|
||||
*/
|
||||
#ifndef GeometryH
|
||||
#define GeometryH
|
||||
|
||||
#include "GL/glew.h"
|
||||
#include "dumb3d.h"
|
||||
using namespace Math3D;
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
class TPlane;
|
||||
|
||||
class TLine
|
||||
{
|
||||
public:
|
||||
vector3 Vector, Point;
|
||||
TLine();
|
||||
TLine(vector3 NPoint, vector3 NVector);
|
||||
~TLine();
|
||||
TPlane GetPlane();
|
||||
double GetDistance(vector3 Point1);
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
class TPlane
|
||||
{
|
||||
public:
|
||||
vector3 Vector;
|
||||
double d;
|
||||
TPlane();
|
||||
TPlane(vector3 NVector, double nd);
|
||||
TPlane(vector3 NPoint, vector3 NVector);
|
||||
TPlane(vector3 Point1, vector3 Vector1, vector3 Vector2);
|
||||
~TPlane();
|
||||
void Normalize();
|
||||
double GetSide(vector3 Point);
|
||||
// void Transform(D3DMATRIX &Transformations);
|
||||
bool Defined();
|
||||
};
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
||||
inline double Sum(vector3 &Vector);
|
||||
bool CrossPoint(vector3 &RetPoint, TLine &Line, TPlane &Plane);
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
#endif
|
||||
Reference in New Issue
Block a user