X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvector.h;h=bbc3aa7df88077682ddea1e82022a1dd0aeea738;hb=7f3a6b11585376eecd80979ec3da2346c5314d88;hp=c7f2771ce001a45e47dd9eebc35f14a82b5bb68d;hpb=c85958d34fac175452fe420ff24ea82f26d6f1f3;p=architektonas diff --git a/src/vector.h b/src/vector.h index c7f2771..bbc3aa7 100644 --- a/src/vector.h +++ b/src/vector.h @@ -3,20 +3,22 @@ // // Various structures used for 3 dimensional imaging // -// by James L. Hammons -// (C) 2001 Underground Software +// by James Hammons +// (C) 2001, 2014 Underground Software // #ifndef __VECTOR_H__ #define __VECTOR_H__ -// What we'll do here is create the vector type and use typedef to alias Point to it. Yeah, that's it. +// What we'll do here is create the vector type and use typedef to alias Point +// to it. Yeah, that's it. class Vector { public: Vector(double xx = 0, double yy = 0, double zz = 0); Vector(Vector tail, Vector head); // Create vector from two points + void SetAngleAndLength(double angle, double length); Vector operator=(Vector const v); Vector operator+(Vector const v); Vector operator-(Vector const v);