Logo Search packages:      
Sourcecode: inkscape version File versions

point.h File Reference


Detailed Description

Defines a Cartesian 2D Point class.

Definition in file point.h.

#include <iostream>
#include <2geom/coord.h>
#include <2geom/isnan.h>
#include <2geom/utils.h>

Go to the source code of this file.

Namespaces

namespace  Geom

Classes

class  Geom::Point
 Cartesian 2D point. More...

Enumerations

enum  Dim2 { X = 0, Y = 1 }

Functions

Point Geom::abs (Point const &b)
Coord Geom::angle_between (Point const a, Point const b)
bool Geom::are_near (Point const &a, Point const &b, double const eps=EPSILON)
Coord Geom::atan2 (Point const p)
Point Geom::constrain_angle (Point const &A, Point const &B, unsigned int n, Point const &dir)
Coord Geom::cross (Point const &a, Point const &b)
Coord Geom::distance (Point const &a, Point const &b)
Coord Geom::distanceSq (Point const &a, Point const &b)
Coord Geom::dot (Point const &a, Point const &b)
bool Geom::is_unit_vector (Point const &p)
bool Geom::is_zero (Point const &p)
Coord Geom::L1 (Point const &p)
Coord Geom::L2 (Point const &p)
Coord Geom::L2sq (Point const &p)
Point Geom::lerp (double const t, Point const a, Point const b)
Coord Geom::LInfty (Point const &p)
Point Geom::middle_point (Point const &P1, Point const &P2)
bool Geom::operator!= (Point const &a, Point const &b)
Point Geom::operator* (Point const &v, Matrix const &m)
Point Geom::operator* (double const s, Point const &p)
Point Geom::operator/ (Point const &p, Matrix const &m)
std::ostream & Geom::operator<< (std::ostream &out_file, const Geom::Point &in_pnt)
bool Geom::operator<= (Point const &a, Point const &b)
bool Geom::operator== (Point const &a, Point const &b)
Point Geom::operator^ (Point const &a, Point const &b)
Point Geom::rot90 (Point const &p)
Point Geom::unit_vector (Point const &a)


Generated by  Doxygen 1.6.0   Back to index