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

Geom::Point Class Reference

#include <point.h>

Inherited by Inkscape::LivePathEffect::PointParam.

List of all members.


Detailed Description

Cartesian 2D point.

Definition at line 22 of file point.h.


Public Member Functions

Point ccw () const
Point cw () const
bool isFinite () const
Coord length () const
void normalize ()
 Scales this vector to make it a unit vector (within rounding error).
Point operator* (double const s) const
Pointoperator*= (Matrix const &m)
Pointoperator*= (double const s)
Point operator+ (Point const &o) const
Pointoperator+= (Point const &o)
Point operator- () const
Point operator- (Point const &o) const
Pointoperator-= (Point const &o)
Point operator/ (double const s) const
Pointoperator/= (double const s)
Pointoperator= (Point const &p)
int operator== (const Point &in_pnt)
Coordoperator[] (Dim2 d) throw ()
Coord operator[] (Dim2 d) const throw ()
Coordoperator[] (unsigned i)
Coord operator[] (unsigned i) const
 Point (Point const &p)
 Point (Coord x, Coord y)
 Point ()
 The default constructor creates an Point(0,0) DO NOT RELY ON THIS, BEST NOT TO USE THIS CONSTRUCTOR.
void round (int places=0)
 A function to lower the precision of the point.

Static Public Member Functions

static Point polar (Coord angle, Coord radius)

Private Attributes

Coord _pt [2]

Friends

std::ostream & operator<< (std::ostream &out_file, const Geom::Point &in_pnt)

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

Generated by  Doxygen 1.6.0   Back to index