86 friend std::ofstream &
operator<<(std::ofstream &os,
Vec &vec);
Class representing coordinates of a Vector.
Definition: Vec.hpp:17
double z
z coordinate
Definition: Vec.hpp:21
friend std::istream & operator>>(std::istream &is, Vec &vec)
Input stream operator.
Definition: Vec.cpp:34
Vec(float x, float y, float z, int dim)
Constructor populating all members.
Definition: Vec.hpp:40
friend std::ofstream & operator<<(std::ofstream &os, Vec &vec)
Output filestream operator.
Definition: Vec.cpp:51
bool operator==(const Vec &rhs) const
Equality operator.
Definition: Vec.cpp:20
int getDimensions() const
Accessor to private member dimensions.
Definition: Vec.cpp:30
double x
x coordinate
Definition: Vec.hpp:19
double getY() const
Accessor to private member y.
Definition: Vec.cpp:12
double y
y coordinate
Definition: Vec.hpp:20
bool operator!=(const Vec &rhs) const
Non-equality operator.
Definition: Vec.cpp:26
Vec(int dim)
Contstructor populating dimensions.
Definition: Vec.hpp:32
double getX() const
Accessor to private member x.
Definition: Vec.cpp:8
int dimensions
number of dimensions in mesh
Definition: Vec.hpp:22
Vec()
Default constructor.
Definition: Vec.hpp:27
double getZ() const
Accessor to private member z.
Definition: Vec.cpp:16