* Add include guards to source:trunk/lib/ivis_common/pievector.h

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@2679 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2007-11-02 19:43:56 +00:00
parent e19e8814b6
commit 2f3e74a107
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,9 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __INCLUDED_LIB_IVIS_PIEVECTOR_H__
#define __INCLUDED_LIB_IVIS_PIEVECTOR_H__
typedef struct { int x, y; } Vector2i;
typedef struct { float x, y; } Vector2f;
typedef struct { int x, y, z; } Vector3i;
@ -311,3 +314,5 @@ static inline WZ_DECL_CONST BOOL Vector3i_InSphere (const Vector3i v, const Vect
Vector3i delta = Vector3i_Sub(v, c);
return (delta.x * delta.x) + (delta.y * delta.y) + (delta.z * delta.z) < (r * r);
}
#endif // __INCLUDED_LIB_IVIS_PIEVECTOR_H__