vcg::Linear< T > Class Template Reference

#include <linear.h>

List of all members.

Public Types

typedef T ScalarType

Public Member Functions

T operator* (const ScalarType)
Toperator*= (const ScalarType)
T operator+ (T const &p) const
Toperator+= (T const &)
T operator- () const
T operator- (T const &p) const
Toperator-= (T const &)
T operator/ (const ScalarType) const
Toperator/= (const ScalarType)
void SetZero ()

Detailed Description

template<class T>
class vcg::Linear< T >

This class represents the common interface for any linear objects. It consists (the declaration of) a set of functions and types that each such object mush have. Linear have the Zero element (neutral element for sums) moltiplication (for a scalar), and two linear elements of a given type can be summed. In this way it is possible to interpolate between two different linear entities. For example: LinearType a,b,c,d,e,f; ... d = a * 0.1 + b * 0.9; e = a + (b - a) * 0.9;

Definition at line 56 of file linear.h.


Member Typedef Documentation

template<class T>
typedef T vcg::Linear< T >::ScalarType

Reimplemented in vcg::Box< N, S >, vcg::Box< 3, int >, and vcg::Box< 3, float >.

Definition at line 58 of file linear.h.


Member Function Documentation

template<class T>
T vcg::Linear< T >::operator* ( const   ScalarType  ) 
template<class T>
T& vcg::Linear< T >::operator*= ( const   ScalarType  ) 
template<class T>
T vcg::Linear< T >::operator+ ( T const &  p  )  const
template<class T>
T& vcg::Linear< T >::operator+= ( T const &   ) 
template<class T>
T vcg::Linear< T >::operator- (  )  const
template<class T>
T vcg::Linear< T >::operator- ( T const &  p  )  const
template<class T>
T& vcg::Linear< T >::operator-= ( T const &   ) 
template<class T>
T vcg::Linear< T >::operator/ ( const   ScalarType  )  const
template<class T>
T& vcg::Linear< T >::operator/= ( const   ScalarType  ) 
template<class T>
void vcg::Linear< T >::SetZero (  )  [inline]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


vcglib
Author(s): Christian Bersch
autogenerated on Fri Jan 11 09:23:01 2013