Initial commit

This commit is contained in:
Eagle517
2026-01-14 10:27:57 -06:00
commit c1576fee30
11290 changed files with 1552799 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------
#ifndef _MQUADPATCH_H_
#define _MQUADPATCH_H_
#ifndef _PLATFORM_H_
#include "platform/platform.h"
#endif
#ifndef _MPOINT_H_
#include "math/mPoint.h"
#endif
#ifndef _MSPLINEPATCH_H_
#include "math/mSplinePatch.h"
#endif
//------------------------------------------------------------------------------
/// Quadratic spline patch. This is a special type of spline that only had 3 control points.
/// @see SplinePatch
class QuadPatch : public SplinePatch
{
typedef SplinePatch Parent;
private:
Point3F a, b, c;
void calcABC( const Point3F *points );
public:
QuadPatch();
virtual void calc( F32 t, Point3F &result );
virtual void calc( Point3F *points, F32 t, Point3F &result );
virtual void setControlPoint( Point3F &point, int index );
virtual void submitControlPoints( SplCtrlPts &points );
};
#endif