Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Rocon/include/NVec.h File Reference
#include <iostream>
#include <vector>
#include <algorithm>
#include <cstdarg>
#include <fstream>
#include <cmath>
Include dependency graph for Rocon/include/NVec.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NVec< DIM, T >
 

Namespaces

 nvc
 

Typedefs

typedef unsigned int id_t
 
typedef NVec< 3, double > Vec3D
 
typedef NVec< 3, double > Vector3D
 
typedef NVec< 3, double > Point3D
 
typedef NVec< 4, float > rgbColor
 
typedef NVec< 3, double > Vertex3D
 
typedef NVec< 3, double > Normal3D
 
typedef NVec< 2, float > TexCoord
 
typedef NVec< 3, unsigned int > Tri
 
typedef NVec< 3, unsigned int > Quad
 
typedef NVec< 2, unsigned int > IdxHEdge
 

Functions

template<int DIM, typename T >
ostream & operator<< (ostream &out, const NVec< DIM, T > &v)
 
template<int DIM, typename T >
std::istream & operator>> (std::istream &in, NVec< DIM, T > &v)
 
template<int DIM, typename T >
bool operator== (const NVec< DIM, T > &v1, const NVec< DIM, T > &v2)
 
template<int DIM, typename T >
NVec< DIM, T > operator+ (const NVec< DIM, T > &u, const NVec< DIM, T > &v)
 
template<int DIM, typename T >
NVec< DIM, T > operator+= (NVec< DIM, T > &u, const NVec< DIM, T > &v)
 
template<int DIM, typename T >
NVec< DIM, T > operator- (const NVec< DIM, T > &u, const NVec< DIM, T > &v)
 
template<int DIM, typename T >
NVec< DIM, T > operator- (const NVec< DIM, T > &v)
 
template<int DIM, class T , class N >
NVec< DIM, T > operator* (N s, const NVec< DIM, T > &v)
 
template<int DIM, class T , class N >
NVec< DIM, T > operator* (const NVec< DIM, T > &v, N s)
 
template<int DIM, class T , class N >
NVec< DIM, T > operator/ (const NVec< DIM, T > &v, N s)
 
template<int DIM, class T , class N >
NVec< DIM, T > operator/= (NVec< DIM, T > &v, N s)
 
template<int DIM, typename T >
operator* (const NVec< DIM, T > &u, const NVec< DIM, T > &v)
 
template<typename T >
NVec< 3, T > cross (const NVec< 3, T > &u, const NVec< 3, T > &v)
 
template<int DIM, typename T >
norm2 (const NVec< DIM, T > &v)
 
template<int DIM, typename T >
norm (const NVec< DIM, T > &v)
 
template<int DIM, typename T >
void unitize (NVec< DIM, T > &v)
 
template<int DIM, typename T >
euclid_distance (const NVec< DIM, T > &u, const NVec< DIM, T > &v)
 
template<int DIM, typename T >
angle (const NVec< DIM, T > &u, const NVec< DIM, T > &v)
 
template<int DIM, typename T >
angle_unitized (const NVec< DIM, T > &u, const NVec< DIM, T > &v)