Initial commit
This commit is contained in:
33
Torque/SDK/engine/math/mPlaneTransformer.h
Normal file
33
Torque/SDK/engine/math/mPlaneTransformer.h
Normal file
@@ -0,0 +1,33 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Torque Game Engine
|
||||
// Copyright (C) GarageGames.com, 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
|
||||
Reference in New Issue
Block a user