![]() |
3D Model Viewer
3D Model Viewer from Group 3
|
Used to coordinates of the vectors that make up the cells models Stores data about the the vector: its x,y,z position. More...
#include <3D_Vector.h>
Public Member Functions | |
Vector3D (float a, float b, float c) | |
Vector3D (float a, float b) | |
Vector3D (float a) | |
Vector3D () | |
~Vector3D () | |
Vector3D (const Vector3D &a) | |
Vector3D | operator+ (const Vector3D &a) |
Vector3D | operator- (const Vector3D &a) |
Vector3D | operator* (const Vector3D &a) |
Vector3D | operator* (float a) |
Vector3D | operator^ (const Vector3D &a) |
const Vector3D & | operator= (const Vector3D &a) |
Vector3D | operator+= (const Vector3D &a) |
float | Get_x () |
float | Get_y () |
float | Get_z () |
void | Set_x (float a) |
void | Set_y (float a) |
void | Set_z (float a) |
Friends | |
istream & | operator>> (istream &in, Vector3D &a) |
ostream & | operator<< (ostream &out, Vector3D &a) |
Used to coordinates of the vectors that make up the cells models Stores data about the the vector: its x,y,z position.
Vector3D::Vector3D | ( | float | a, |
float | b, | ||
float | c | ||
) |
Constructor with parameters for 3 dimensions
(float) | x coordinate |
(float) | y coordinate |
(float) | z coordinate |
Vector3D::Vector3D | ( | float | a, |
float | b | ||
) |
Constructor with parameters for 2 dimensions Other axis can be manipulated later
(float) | x coordinate |
(float) | y coordinate |
Vector3D::Vector3D | ( | float | a | ) |
Constructor with parameters for 1 dimension Other axis can be manipulated later
(float) | x coordinate |
Vector3D::Vector3D | ( | ) |
Constructor with no parameters
Vector3D::~Vector3D | ( | ) |
Destructor
Vector3D::Vector3D | ( | const Vector3D & | a | ) |
Copy Constructor
(Vector3D) | input vector |
float Vector3D::Get_x | ( | ) |
Return x value of vector
float Vector3D::Get_y | ( | ) |
Return y value of vector
float Vector3D::Get_z | ( | ) |
Return z value of vector
Vector3D Vector3D::operator* | ( | float | a | ) |
void Vector3D::Set_x | ( | float | a | ) |
Set x value of vector
(float) | x value |
void Vector3D::Set_y | ( | float | a | ) |
Set x value of vector
(float) | y value |
void Vector3D::Set_z | ( | float | a | ) |
Set z value of vector
(float) | z value |
|
friend |
Overloaded '<<' operator to output vector values
(Vector3D) |
|
friend |
Overloaded '>>' operator to output vector values
(Vector3D) |