Class representing coordinates of a Vector.
More...
#include <Vec.hpp>
|
double | x |
| x coordinate
|
|
double | y |
| y coordinate
|
|
double | z |
| z coordinate
|
|
int | dimensions |
| number of dimensions in mesh
|
|
Class representing coordinates of a Vector.
- Note
- Class can only be mutated through recreating vec and setting in parent Vertex class
◆ Vec() [1/2]
◆ Vec() [2/2]
Vec::Vec |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z, |
|
|
int |
dim |
|
) |
| |
|
inline |
Constructor populating all members.
- Parameters
-
x | x coordinate |
y | y coordinate |
z | z coordinate |
dim | number of dimensions |
◆ getDimensions()
int Vec::getDimensions |
( |
| ) |
const |
Accessor to private member dimensions.
- Returns
- number of dimensions
◆ getX()
double Vec::getX |
( |
| ) |
const |
Accessor to private member x.
- Returns
- x coordinate
◆ getY()
double Vec::getY |
( |
| ) |
const |
Accessor to private member y.
- Returns
- y coordinate
◆ getZ()
double Vec::getZ |
( |
| ) |
const |
Accessor to private member z.
- Returns
- z coordinate
◆ operator!=()
bool Vec::operator!= |
( |
const Vec & |
rhs | ) |
const |
Non-equality operator.
- Parameters
-
- Returns
◆ operator==()
bool Vec::operator== |
( |
const Vec & |
rhs | ) |
const |
Equality operator.
- Parameters
-
- Returns
◆ operator<< [1/2]
std::ofstream & operator<< |
( |
std::ofstream & |
os, |
|
|
Vec & |
vec |
|
) |
| |
|
friend |
Output filestream operator.
- Parameters
-
- Returns
◆ operator<< [2/2]
std::ostream & operator<< |
( |
std::ostream & |
os, |
|
|
Vec & |
vec |
|
) |
| |
|
friend |
Output stream operator.
- Parameters
-
- Returns
◆ operator>>
std::istream & operator>> |
( |
std::istream & |
is, |
|
|
Vec & |
vec |
|
) |
| |
|
friend |
Input stream operator.
- Parameters
-
- Returns
The documentation for this class was generated from the following files: