Logo Search packages:      
Sourcecode: inkscape version File versions

point.h File Reference

Detailed Description

Cartesian point class.

Definition in file point.h.

#include <iostream>
#include "coord.h"
#include "utils.h"

Go to the source code of this file.


namespace  Geom


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


enum  Dim2 { X = 0, Y = 1 }


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)
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)
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