Public Member Functions

gmtl::LinearCurve< DATA_TYPE, SIZE > Class Template Reference

A representation of a line with order set to 2. More...

#include <ParametricCurve.h>

Inheritance diagram for gmtl::LinearCurve< DATA_TYPE, SIZE >:
Inheritance graph
[legend]
Collaboration diagram for gmtl::LinearCurve< DATA_TYPE, SIZE >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 LinearCurve ()
 LinearCurve (const LinearCurve &other)
 ~LinearCurve ()
LinearCurveoperator= (const LinearCurve &other)
void makeLerp ()

Detailed Description

template<typename DATA_TYPE, unsigned int SIZE>
class gmtl::LinearCurve< DATA_TYPE, SIZE >

A representation of a line with order set to 2.

Template Parameters:
DATA_TYPE The data type to use for the components.
SIZE The number of components this curve has.

Definition at line 198 of file ParametricCurve.h.


Constructor & Destructor Documentation

template<typename DATA_TYPE , unsigned int SIZE>
gmtl::LinearCurve< DATA_TYPE, SIZE >::LinearCurve (  ) 

Definition at line 210 of file ParametricCurve.h.

{
}

template<typename DATA_TYPE , unsigned int SIZE>
gmtl::LinearCurve< DATA_TYPE, SIZE >::LinearCurve ( const LinearCurve< DATA_TYPE, SIZE > &  other  ) 

Definition at line 215 of file ParametricCurve.h.

{
   *this = other;
}

template<typename DATA_TYPE , unsigned int SIZE>
gmtl::LinearCurve< DATA_TYPE, SIZE >::~LinearCurve (  ) 

Definition at line 221 of file ParametricCurve.h.

{
}


Member Function Documentation

template<typename DATA_TYPE , unsigned int SIZE>
void gmtl::LinearCurve< DATA_TYPE, SIZE >::makeLerp (  ) 

Definition at line 235 of file ParametricCurve.h.

{
   mBasisMatrix.set(
      -1.0, 1.0,
      1.0, 0.0
   );
}

template<typename DATA_TYPE , unsigned int SIZE>
LinearCurve< DATA_TYPE, SIZE > & gmtl::LinearCurve< DATA_TYPE, SIZE >::operator= ( const LinearCurve< DATA_TYPE, SIZE > &  other  ) 

Definition at line 227 of file ParametricCurve.h.

{
   ParametricCurve::operator =(other);

   return *this;
}


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