Three dimensional Vector class.
More...
#include <matrix3.h>
List of all members.
Public Member Functions |
double & | operator() (int idx) |
| Access Elements.
|
Vector3 | operator* (double v) |
| Vector multiplication with a scalar.
|
Vector3 & | operator*= (double v) |
| Vector multiplication with a Scalar and output into itself.
|
Vector3 & | operator+= (double v) |
| Adding a Scalar to a Vector and output into itself.
|
Vector3 & | operator+= (const Vector3 &v) |
| Vector Addition and output into itself.
|
Vector3 & | operator= (double v) |
| Set Vector with one scalar value.
|
double & | operator[] (int idx) |
| Access Elements.
|
double | operator[] (int idx) const |
| Access Elements.
|
| Vector3 () |
| Constructor.
|
Public Attributes |
double | x [3] |
| Storage for three dimensions.
|
Friends |
std::ostream & | operator<< (std::ostream &os, const Vector3 &v) |
| Print out a vector.
|
Detailed Description
Three dimensional Vector class.
Definition at line 137 of file matrix3.h.
Constructor & Destructor Documentation
Member Function Documentation
double& Vector3::operator() |
( |
int |
idx | ) |
[inline] |
Access Elements.
- Parameters:
-
- Returns:
- Value
Definition at line 167 of file matrix3.h.
Vector3 Vector3::operator* |
( |
double |
v | ) |
[inline] |
Vector multiplication with a scalar.
- Parameters:
-
- Returns:
- Result Vector
Definition at line 175 of file matrix3.h.
Vector3& Vector3::operator*= |
( |
double |
v | ) |
[inline] |
Vector multiplication with a Scalar and output into itself.
- Parameters:
-
- Returns:
- Result Vector
Definition at line 196 of file matrix3.h.
Vector3& Vector3::operator+= |
( |
double |
v | ) |
[inline] |
Adding a Scalar to a Vector and output into itself.
- Parameters:
-
- Returns:
- Result Vector
Definition at line 206 of file matrix3.h.
Vector Addition and output into itself.
- Parameters:
-
- Returns:
- Result Vector
Definition at line 216 of file matrix3.h.
Vector3& Vector3::operator= |
( |
double |
v | ) |
[inline] |
Set Vector with one scalar value.
- Parameters:
-
- Returns:
- Result Vector
Definition at line 186 of file matrix3.h.
double& Vector3::operator[] |
( |
int |
idx | ) |
[inline] |
Access Elements.
- Parameters:
-
- Returns:
- Value
Definition at line 151 of file matrix3.h.
double Vector3::operator[] |
( |
int |
idx | ) |
const [inline] |
Access Elements.
- Parameters:
-
- Returns:
- Value
Definition at line 159 of file matrix3.h.
Friends And Related Function Documentation
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Vector3 & |
v |
|
) |
| [friend] |
Print out a vector.
- Parameters:
-
- Returns:
- print out
Definition at line 227 of file matrix3.h.
Member Data Documentation
Storage for three dimensions.
Definition at line 140 of file matrix3.h.
The documentation for this class was generated from the following file: