#include <stdlib.h>
#ifdef FGFS
# include <simgear/compiler.h>
-# include STL_STRING
# ifdef FG_HAVE_STD_INCLUDES
# include <fstream>
+# include <cmath>
# else
# include <fstream.h>
+# include <math.h>
# endif
- FG_USING_STD(string);
#else
-# include <string>
# include <fstream>
+# include <cmath>
#endif
+#include <string>
+
/*******************************************************************************
FORWARD DECLARATIONS
*******************************************************************************/
DECLARATION: MatrixException
*******************************************************************************/
-using namespace std;
+using std::string;
+using std::ostream;
+using std::istream;
class MatrixException /* : public exception */
{
~FGColumnVector();
FGColumnVector operator*(const double scalar);
+ FGColumnVector operator*(const FGColumnVector& V); // Cross product operator
FGColumnVector operator/(const double scalar);
FGColumnVector operator+(const FGColumnVector& B);
- float Magnitude(void);
+ FGColumnVector operator-(const FGColumnVector& B);
+ float Magnitude(void);
FGColumnVector Normalize(void);
friend FGColumnVector operator*(const double scalar, const FGColumnVector& A);
+ friend FGColumnVector operator*(const FGMatrix& M, const FGColumnVector& V);
double& operator()(int m) const;
+
+ FGColumnVector multElementWise(const FGColumnVector& V);
};
/******************************************************************************/