X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Fvectorsolutions.h;fp=src%2Fbase%2Fvectorsolutions.h;h=0000000000000000000000000000000000000000;hb=9f6ad3fe0b9cb30115a5d38e8af3aebed0d70c08;hp=fcb6508f322be24fef3c10b0d6c20be2cc025b78;hpb=43c13b052d069ba435277d93867380d00c04931f;p=architektonas diff --git a/src/base/vectorsolutions.h b/src/base/vectorsolutions.h deleted file mode 100644 index fcb6508..0000000 --- a/src/base/vectorsolutions.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef ____VECTORSOLUTIONS_H____ -#define ____VECTORSOLUTIONS_H____ - -#include // Needed for 'friend ostream' below -#include "vector.h" - -/** - * Represents one to 4 vectors. Typically used to return multiple - * solutions from a function. - */ -class VectorSolutions -{ - public: - VectorSolutions(); - VectorSolutions(const VectorSolutions & s); - VectorSolutions(int num); - VectorSolutions(const Vector & v1); - VectorSolutions(const Vector & v1, const Vector & v2); - VectorSolutions(const Vector & v1, const Vector & v2, const Vector & v3); - VectorSolutions(const Vector & v1, const Vector & v2, const Vector & v3, - const Vector & v4); - VectorSolutions(const Vector & v1, const Vector & v2, const Vector & v3, - const Vector & v4, const Vector & v5); - - ~VectorSolutions(); - - void alloc(int num); - void clean(); - Vector get(int i) const; - int getNumber() const; - bool hasValid() const; - void set(int i, const Vector & v); - void setTangent(bool t); - bool isTangent() const; - Vector getClosest(const Vector & coord, double * dist = NULL, int * index = NULL) const; - void rotate(Vector center, double ang); - void scale(Vector center, Vector factor); - - VectorSolutions operator=(const VectorSolutions & s); - - friend std::ostream & operator<<(std::ostream & os, const VectorSolutions & s); - - private: - Vector * vector; - int num; - bool tangent; -}; - -#endif // __VECTORSOLUTIONS_H____