Vector3f.h
static Vector3f Cross(Vector3f v1, Vector3f v2)
	{
		Vector3f cross;
		cross.x = (v1.y * v2.z) - (v1.z * v2.y);
		cross.y = -((v1.x * v2.z) - (v1.z * v2.x));
		cross.z = (v1.x * v2.y) - (v1.y * v2.x);
		return cross;
	}
//returns a vector orthagonal to both v1 and v2
returns a vector orthagonal to both v1 and v2
returns a vector orthagonal to both v1 and v2
static Vector3f Cross(Vector3f v1, Vector3f v2)
	{
		Vector3f cross;
		cross.x = (v1.y * v2.z) - (v1.z * v2.y);
		cross.y = -((v1.x * v2.z) - (v1.z * v2.x));
		cross.z = (v1.x * v2.y) - (v1.y * v2.x);
		return cross;
	}
static Vector3f Cross ( Vector3f v1 , Vector3f v2 ) { Vector3f cross ; cross . x = ( v1 . y * v2 . z ) - ( v1 . z * v2 . y ) ; cross . y = - ( ( v1 . x * v2 . z ) - ( v1 . z * v2 . x ) ) ; cross . z = ( v1 . x * v2 . y ) - ( v1 . y * v2 . x ) ; return cross ; }
returns a vector orthagonal to both v1 and v2
returns a vector orthagonal to both v1 and v2