first commit
This commit is contained in:
31
include/framework/shape/shape.h
Normal file
31
include/framework/shape/shape.h
Normal file
@ -0,0 +1,31 @@
|
||||
/* -----------------------------------------------------------------------------
|
||||
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__
|
||||
Reference in New Issue
Block a user