Vector.inl File Reference
Provides basic functionality for a constant-sized Vector. More...
Go to the source code of this file.
Functions | |
| template<unsigned N, typename T> | |
| Vector< N, T > | operator* (const real_t &scale, const Vector< N, T > &rhs) |
| template<unsigned N, typename T> | |
| Vector< N, T > | operator- (const Vector< N, T > &rhs) |
| template<unsigned N, typename T> | |
| std::ostream & | operator<< (std::ostream &os, const Vector< N, T > &v) |
| Prints a Vector to an output stream. | |
| Vector3 | convertHemisphere (const real_t theta, const real_t phi, const Vector3 &N) |
Detailed Description
Provides basic functionality for a constant-sized Vector.
- Date:
- Fall 2008
Definition in file Vector.inl.
Function Documentation
converts the vector defined by the given spherical coordinates around the canonical up vector (0, 1, 0) to be centered around the given up vector N
Definition at line 525 of file Vector.inl.
template<unsigned N, typename T>
| Vector<N, T> operator* | ( | const real_t & | scale, | |
| const Vector< N, T > & | v | |||
| ) | [inline] |
- Returns:
- the N-length vector resulting from multiplying a scalar by an N-length vector
Definition at line 374 of file Vector.inl.
- Returns:
- (-1) * rhs, which is a negated version of the original right hand side vector
Definition at line 383 of file Vector.inl.
template<unsigned N, typename T>
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Vector< N, T > & | v | |||
| ) | [inline] |
Generated on 28 Feb 2009 for Milton by
1.5.6