tge/engine/math/mPlaneTransformer.h
2017-04-17 06:17:10 -06:00

34 lines
789 B
C++
Executable File

//-----------------------------------------------------------------------------
// 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