32 lines
635 B
C++
32 lines
635 B
C++
/* -----------------------------------------------------------------------------
|
|
GSFramework
|
|
Copyright 2001-2013 Emmanuel Julien. All Rights Reserved.
|
|
----------------------------------------------------------------------------- */
|
|
|
|
|
|
#ifndef __NSHAPE__
|
|
#define __NSHAPE__
|
|
|
|
|
|
#include "math/vector.h"
|
|
|
|
|
|
namespace GS {
|
|
|
|
/*!
|
|
@short Shape base class.
|
|
@author Emmanuel Julien (ejulien@gsworks.fr)
|
|
*/
|
|
struct Shape
|
|
{
|
|
/// Get shape center.
|
|
virtual Vector4 &GetCenter() const = 0;
|
|
/// Get distance to support point on a given direction.
|
|
virtual float GetSupportDistance(const Vector4 &) const = 0;
|
|
};
|
|
|
|
} // GS
|
|
|
|
|
|
#endif // __NSHAPE__
|