Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

Public Types | Public Member Functions | Private Attributes | Related Functions

Geom::D2< T > Class Template Reference

#include <d2.h>

Inheritance diagram for Geom::D2< T >:
Inheritance graph
[legend]
Collaboration diagram for Geom::D2< T >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef Point output_type

Public Member Functions

Point at0 () const
Point at1 () const
 D2 (Point const &a)
 D2 (T const &a, T const &b)
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< SBasistoSBasis () const
std::vector< PointvalueAndDerivatives (double t, unsigned n) const
Point valueAt (double t) const

Private Attributes

f [2]

Related Functions

(Note that these are not member functions.)


template<typename T >
cross (D2< T > const &a, D2< T > const &b)
 Calculates the 'cross product' or 'outer product' of a and b.
template<typename T >
dot (D2< T > const &a, Point const &b)
 Calculates the 'dot product' or 'inner product' of a and b.

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.


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

Generated by  Doxygen 1.6.0   Back to index