48 float GetX()
const {
return x;};
58 float GetY()
const {
return y;};
103 virtual void Print() = 0;
125 Vector3D(
float x_,
float y_,
float z_);
194 bool IsWithinXandZRange(
const Vector3D&,
float precision);
bool operator==(const Vector &)
Convert vector distance to std::vector<float> instances.
Definition: vector.cc:20
void SetZ(float z_)
This function uses to set z coordinator of a vector instance.
Definition: vector.cc:12
friend std::vector< float > toVectorFloat(Vector &v)
Convert vector distance to std::vector<float> instances.
Definition: vector.cc:25
float GetZ() const
This function uses to get z coordinator of a vector instance.
Definition: vector.h:53
void SetX(float x_)
This function uses to set x coordinator of a vector instance.
Definition: vector.cc:8
Definition: asubject.cc:3
float z
Coordinates of a vector.
Definition: vector.h:33
This is the Vector2D class.
Definition: vector.h:206
This is the interface class for the Vector3D and Vector2D classes.
Definition: vector.h:31
friend float Distance(const Vector &v1, const Vector &v2)
Compute the distance (float variable) between two vectors instances.
Definition: vector.cc:188
float GetX() const
This function uses to get x coordinator of a vector instance.
Definition: vector.h:48
float GetY() const
This function uses to get y coordinator of a vector instance.
Definition: vector.h:58
virtual void Print()=0
Function to print the coordinate of a vector instance.
float Magnitude()
This function returns the magitude of a vector instance.
Definition: vector.cc:16
friend float DotProduct(const Vector &v1, const Vector &v2)
Compute the dot product (float variable) between two vectors instances.
Definition: vector.cc:184
This is the Vector3D class.
Definition: vector.h:115