btds_math.cpp
// the pi to pf forms a vector which spits the plane. The cross is the up direction
the pi to pf forms a vector which spits the plane. The cross is the up direction
the pi to pf forms a vector which spits the plane . The cross is the up direction
bool Line2d::isUpRelative(const float2& ptest) const
	{
		float2 lineCross = (pf - pi).GetCross();
		float2 vecTest = (ptest - pi);
		float dotRes = Dot(lineCross, vecTest);
		return dotRes >= 0.0f;
	}
bool Line2d :: isUpRelative ( const float2 & ptest ) const { float2 lineCross = ( pf - pi ) . GetCross ( ) ; float2 vecTest = ( ptest - pi ) ; float dotRes = Dot ( lineCross , vecTest ) ; return dotRes >= 0.0f ; }
the pi to pf forms a vector which spits the plane.
the pi to pf forms a vector which spits the plane .
// even for degenerate testing it will show as above.