#include <linear.h>
Public Types | |
typedef T | ScalarType |
Public Member Functions | |
T | operator* (const ScalarType) |
T & | operator*= (const ScalarType) |
T | operator+ (T const &p) const |
T & | operator+= (T const &) |
T | operator- () const |
T | operator- (T const &p) const |
T & | operator-= (T const &) |
T | operator/ (const ScalarType) const |
T & | operator/= (const ScalarType) |
void | SetZero () |
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.
typedef T vcg::Linear< T >::ScalarType |
Reimplemented in vcg::Box< N, S >, vcg::Box< 3, int >, and vcg::Box< 3, float >.
T vcg::Linear< T >::operator* | ( | const | ScalarType | ) |
T& vcg::Linear< T >::operator*= | ( | const | ScalarType | ) |
T vcg::Linear< T >::operator+ | ( | T const & | p | ) | const |
Reimplemented in vcg::Box< N, S >, vcg::Box< 3, int >, and vcg::Box< 3, float >.
T& vcg::Linear< T >::operator+= | ( | T const & | ) |
Reimplemented in vcg::Box< N, S >, vcg::Box< 3, int >, and vcg::Box< 3, float >.
T vcg::Linear< T >::operator- | ( | ) | const |
Reimplemented in vcg::Box< N, S >, vcg::Box< 3, int >, and vcg::Box< 3, float >.
T vcg::Linear< T >::operator- | ( | T const & | p | ) | const |
Reimplemented in vcg::Box< N, S >, vcg::Box< 3, int >, and vcg::Box< 3, float >.
T& vcg::Linear< T >::operator-= | ( | T const & | ) |
Reimplemented in vcg::Box< N, S >, vcg::Box< 3, int >, and vcg::Box< 3, float >.
T vcg::Linear< T >::operator/ | ( | const | ScalarType | ) | const |
T& vcg::Linear< T >::operator/= | ( | const | ScalarType | ) |
void vcg::Linear< T >::SetZero | ( | ) | [inline] |