proj home

Files   Classes   Functions   Hierarchy  

orthoproj< T, V, IP, Dim > Class Template Reference

#include <mathlib.h>

Collaboration diagram for orthoproj< T, V, IP, Dim >:

List of all members.

Public Member Functions

void operator() (V const &c)

Public Attributes

T a [Dim]
v [Dim]
IP p


Detailed Description

template<typename T, typename V, typename IP, uint Dim>
class orthoproj< T, V, IP, Dim >

Definition at line 260 of file mathlib.h.


Member Function Documentation

template<typename T , typename V , typename IP , uint Dim>
void orthoproj< T, V, IP, Dim >::operator() ( V const &  c  )  [inline]

Definition at line 744 of file mathlib.h.

References orthoproj< T, V, IP, Dim >::p, and orthoproj< T, V, IP, Dim >::v.

00745 {
00746   T t;
00747   for (uint i=0; i<Dim; ++i)
00748   {
00749     p(a[i],c,v[i]);
00750     p(t,v[i],v[i]);
00751     a[i] /= t;
00752   }
00753 }


Member Data Documentation

template<typename T , typename V , typename IP , uint Dim>
T orthoproj< T, V, IP, Dim >::a[Dim]

Definition at line 264 of file mathlib.h.

template<typename T , typename V , typename IP , uint Dim>
IP orthoproj< T, V, IP, Dim >::p

Definition at line 266 of file mathlib.h.

Referenced by orthoproj< T, V, IP, Dim >::operator()().

template<typename T , typename V , typename IP , uint Dim>
V orthoproj< T, V, IP, Dim >::v[Dim]

Definition at line 265 of file mathlib.h.

Referenced by orthoproj< T, V, IP, Dim >::operator()().


The documentation for this class was generated from the following file:

Generated on Fri Mar 4 00:50:07 2011 for Chelton Evans Source by  doxygen 1.5.8