karto::Vector3< T > Class Template Reference
#include <Karto.h>
List of all members.
Detailed Description
template<typename T>
class karto::Vector3< T >
Definition at line 1146 of file Karto.h.
Constructor & Destructor Documentation
Default constructor
Definition at line 1152 of file Karto.h.
Constructor initializing point location
- Parameters:
-
Definition at line 1164 of file Karto.h.
Copy constructor
- Parameters:
-
Definition at line 1175 of file Karto.h.
Member Function Documentation
Gets the x-component of this vector
- Returns:
- x-component
Definition at line 1187 of file Karto.h.
Gets the y-component of this vector
- Returns:
- y-component
Definition at line 1205 of file Karto.h.
Gets the z-component of this vector
- Returns:
- z-component
Definition at line 1223 of file Karto.h.
Returns the length of the vector.
- Returns:
- Length of the vector
Definition at line 1272 of file Karto.h.
Ceiling vector operator
- Parameters:
-
Definition at line 1252 of file Karto.h.
Floor vector operator
- Parameters:
-
Definition at line 1241 of file Karto.h.
Inequality operator returns true if any of the corresponding x, y, z values of each Vector3 not the same.
- Parameters:
-
Definition at line 1366 of file Karto.h.
Scales the vector by the given scalar
- Parameters:
-
Definition at line 1348 of file Karto.h.
Binary vector add.
- Parameters:
-
- Returns:
- sum
Definition at line 1319 of file Karto.h.
Binary vector add.
- Parameters:
-
- Returns:
- vector sum
Definition at line 1309 of file Karto.h.
Binary vector subtract.
- Parameters:
-
- Returns:
- difference
Definition at line 1339 of file Karto.h.
Binary vector subtract.
- Parameters:
-
- Returns:
- vector difference
Definition at line 1329 of file Karto.h.
Assignment operator
Definition at line 1295 of file Karto.h.
Equality operator returns true if the corresponding x, y, z values of each Vector3 are the same values.
- Parameters:
-
Definition at line 1357 of file Karto.h.
Sets the x-component of this vector
- Parameters:
-
Definition at line 1196 of file Karto.h.
Sets the y-component of this vector
- Parameters:
-
Definition at line 1214 of file Karto.h.
Sets the z-component of this vector
- Parameters:
-
Definition at line 1232 of file Karto.h.
Returns the square of the length of the vector
- Returns:
- square of the length of the vector
Definition at line 1263 of file Karto.h.
Returns a string representation of this vector
- Returns:
- string representation of this vector
Definition at line 1281 of file Karto.h.
Friends And Related Function Documentation
template<typename T>
std::ostream& operator<< |
( |
std::ostream & |
rStream, |
|
|
const Vector3< T > & |
rVector | |
|
) |
| | [friend] |
Write Vector3 onto output stream
- Parameters:
-
| rStream | output stream |
| rVector | to write |
Definition at line 1376 of file Karto.h.
template<typename T>
std::istream& operator>> |
( |
std::istream & |
rStream, |
|
|
const Vector3< T > & |
| |
|
) |
| | [friend] |
Read Vector3 from input stream
- Parameters:
-
| rStream | input stream |
| rVector | to read |
Definition at line 1387 of file Karto.h.
Member Data Documentation
The documentation for this class was generated from the following file: