Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: ConfigFile SDFileSystem mbed
Fork of LAURUS_program by
Diff: Vector/Vector.h
- Revision:
- 9:6d4578dcc1ed
- Parent:
- 0:bc6f14fc60c7
- Child:
- 13:df1e8a650185
--- a/Vector/Vector.h Fri Jun 12 15:28:05 2015 +0000
+++ b/Vector/Vector.h Mon Jun 15 10:40:18 2015 +0000
@@ -10,6 +10,8 @@
Vector(const Vector& v);
Vector& operator=(const Vector& v);
+ Vector operator+();
+ Vector operator-();
Vector& operator*=(float c);
Vector& operator/=(float c);
Vector& operator+=(const Vector& v);
@@ -18,6 +20,8 @@
void SetComp(int dimNo, float val);
float GetNorm() const;
Vector Normalize() const;
+ Vector GetParaCompTo(Vector v);
+ Vector GetPerpCompTo(Vector v);
inline int GetDim() const {
return dim;
