31.SYS-AgentsOnQTTerrain/Vector3f.h
// test if a point is above or below a line
// used for calculating agents on the surfaces (plane) of terrain
// each plane is made up of two triangles (p0, p1, p2) (p2, p1, p3)

test if a point is above or below a line
used for calculating agents on the surfaces (plane) of terrain
each plane is made up of two triangles (p0, p1, p2) (p2, p1, p3)
test if a point is above or below a line used for calculating agents on the surfaces ( plane ) of terrain each plane is made up of two triangles ( p0 p1 p2 ) ( p2 p1 p3 )
static bool isAboveLine(Vector3f v1, Vector3f v2, Vector3f point)
	{
		bool _isAboveLine = false;
		float v = pointOnLine2D(v1.x, v1.z, v2.x, v2.z, point.x, point.z);
		if(v >= 0)
			_isAboveLine = false;
		else if (v < 0)
			_isAboveLine = true;
			return _isAboveLine;
	}
static bool isAboveLine ( Vector3f v1 , Vector3f v2 , Vector3f point ) { bool _isAboveLine = false ; float v = pointOnLine2D ( v1 . x , v1 . z , v2 . x , v2 . z , point . x , point . z ) ; if ( v >= 0 ) _isAboveLine = false ; else if ( v < 0 ) _isAboveLine = true ; return _isAboveLine ; }
test if a point is above or below a line
used for calculating agents on the surfaces (plane) of terrain
each plane is made up of two triangles (p0, p1, p2) (p2, p1, p3)
test if a point is above or below a line used for calculating agents on the surfaces ( plane ) of terrain each plane is made up of two triangles ( p0 p1 p2 ) ( p2 p1 p3 )
// OpenGL axis implemented here. Screen coordinate is in reverse.
