/************************************************************************** * * Copyright (c) 2000 Microsoft Corporation * * Module Name: * * Vector/Matrix mathematics * * Abstract: * * Defines some vector mathematics for use by the ICM conversion code. * * Notes: * * * * Created: * * 04/08/2000 asecchia * Created it. * **************************************************************************/ #ifndef _VECTORMATH_HPP #define _VECTORMATH_HPP #define VECTORSIZE 3 namespace VectorMath { class Vector { public: friend class Matrix; Vector() {} Vector(REAL x, REAL y, REAL z) { ASSERT((VECTORSIZE==3)); data[0]=x; data[1]=y; data[2]=z; } Vector operator *(REAL k) { Vector v; for(int i=0; i