// Copyright (C) 2004-2009 Christoph Kubisch & Eike Decker
// This file is part of the "Luxinia Engine".
// For conditions of distribution and use, see copyright notice in luxiniapublicsdk.txt
//
// <Author: Christoph Kubisch>


#ifndef __LUXMATH_GEOMETRY_H__
#define __LUXMATH_GEOMETRY_H__

#include <luxmath/basetypes.h>

#ifdef __cplusplus
extern "C"{
#endif

void PlaneSet(lxPlane plane, const lxVector3 a, const lxVector3 b, const lxVector3 c);

void PlaneIntersect(lxVector3 out, const lxPlane planea,const lxPlane planeb,const lxPlane planec);

void PlaneVecCheckLine(lxVector3 intersectpoint, const lxVector3 planenormal, 
					const lxVector3 planepoint, const lxVector3 raystart, const lxVector3 rayend);

float TriangleArea( const lxVector3 v0, const lxVector3 v1, const lxVector3 v2);

#ifdef __cplusplus
}
#endif

#endif
