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

Public Member Functions | Static Public Member Functions | Private Attributes | Friends

Geom::Point Class Reference

Cartesian 2D point. More...

#include <point.h>

Inheritance diagram for Geom::Point:
Inheritance graph

List of all members.

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*= (double const s)
Pointoperator*= (Matrix const &m)
Point operator+ (Point const &o) const
Pointoperator+= (Point const &o)
Point operator- (Point const &o) const
Point operator- () 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)
Coord operator[] (Dim2 d) const throw ()
Coord operator[] (unsigned i) const
Coordoperator[] (unsigned i)
Coordoperator[] (Dim2 d) throw ()
 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.
 Point (Point const &p)
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]


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

Detailed Description

Cartesian 2D point.

Definition at line 22 of file point.h.

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

Generated by  Doxygen 1.6.0   Back to index