Logo Search packages:      
Sourcecode: inkscape version File versions

Geom::D2< T > Class Template Reference

#include <d2.h>

List of all members.

Detailed Description

template<class T>
class Geom::D2< T >

The D2 class takes two instances of a scalar data type and treats them like a point. All operations which make sense on a point are deļ¬ned for D2. A D2<double> is a Point. A D2<Interval> is a standard axis aligned rectangle. D2<SBasis> provides a 2d parametric function which maps t to a point x(t), y(t)

Definition at line 51 of file d2.h.

Public Types

typedef Point output_type

Public Member Functions

Point at0 () const
Point at1 () const
 D2 (T const &a, T const &b)
 D2 (Point const &a)
bool isConstant () const
bool isFinite () const
bool isZero () const
Point operator() (double x, double y) const
Point operator() (double t) const
T const & operator[] (unsigned i) const
T & operator[] (unsigned i)
D2< SBasis > toSBasis () const
std::vector< PointvalueAndDerivatives (double t, unsigned n) const
Point valueAt (double t) const

Private Attributes

f [2]

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

Generated by  Doxygen 1.6.0   Back to index