mirror of
https://github.com/tribes2/engine.git
synced 2026-01-20 03:34:48 +00:00
36 lines
808 B
C++
36 lines
808 B
C++
//-----------------------------------------------------------------------------
|
|
// V12 Engine
|
|
//
|
|
// Copyright (c) 2001 GarageGames.Com
|
|
// Portions Copyright (c) 2001 by Sierra Online, Inc.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
#ifndef _MPLANETRANSFORMER_H_
|
|
#define _MPLANETRANSFORMER_H_
|
|
|
|
#ifndef _MMATRIX_H_
|
|
#include "Math/mMatrix.h"
|
|
#endif
|
|
#ifndef _MPOINT_H_
|
|
#include "Math/mPoint.h"
|
|
#endif
|
|
#ifndef _MPLANE_H_
|
|
#include "Math/mPlane.h"
|
|
#endif
|
|
|
|
// =========================================================
|
|
class PlaneTransformer
|
|
{
|
|
MatrixF mTransform;
|
|
Point3F mScale;
|
|
|
|
MatrixF mTransposeInverse;
|
|
|
|
public:
|
|
void set(const MatrixF& xform, const Point3F& scale);
|
|
void transform(const PlaneF& plane, PlaneF& result);
|
|
void setIdentity();
|
|
};
|
|
|
|
#endif
|