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.

Author:
Travis Fischer (fisch0920@gmail.com)
Date:
Fall 2008

Definition in file Vector.inl.


Function Documentation

Vector3 convertHemisphere ( const real_t  theta,
const real_t  phi,
const Vector3 N 
) [inline]

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.

template<unsigned N, typename T>
Vector<N, T> operator- ( const Vector< N, T > &  rhs  )  [inline]

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]

Prints a Vector to an output stream.

Definition at line 389 of file Vector.inl.


Generated on 28 Feb 2009 for Milton by doxygen 1.5.6