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

line.h File Reference


Detailed Description

Infinite Straight Line.

Copyright 2008 Marco Cecchetti <mrcekets at gmail.com>

This library is free software; you can redistribute it and/or modify it either under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation (the "LGPL") or, at your option, under the terms of the Mozilla Public License Version 1.1 (the "MPL"). If you do not alter this notice, a recipient may use your version of this file under either the MPL or the LGPL.

You should have received a copy of the LGPL along with this library in the file COPYING-LGPL-2.1; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA You should have received a copy of the MPL along with this library in the file COPYING-MPL-1.1

The contents of this file are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/

This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the LGPL or the MPL for the specific language governing rights and limitations.

Definition in file line.h.

#include <cmath>
#include <2geom/bezier-curve.h>
#include <2geom/crossing.h>
#include <2geom/exception.h>
#include <2geom/ray.h>

Go to the source code of this file.

Namespaces

namespace  Geom
namespace  Geom::detail

Classes

class  Geom::Line

Functions

double Geom::angle_between (Line const &l1, Line const &l2)
bool Geom::are_collinear (Point const &p1, Point const &p2, Point const &p3, double eps=EPSILON)
bool Geom::are_near (Point const &_point, LineSegment const &_segment, double eps=EPSILON)
bool Geom::are_near (Point const &_point, Line const &_line, double eps=EPSILON)
bool Geom::are_orthogonal (Line const &l1, Line const &l2, double eps=EPSILON)
bool Geom::are_parallel (Line const &l1, Line const &l2, double eps=EPSILON)
bool Geom::are_same (Line const &l1, Line const &l2, double eps=EPSILON)
double Geom::distance (Point const &_point, LineSegment const &_segment)
double Geom::distance (Point const &_point, Line const &_line)
OptCrossing Geom::intersection (LineSegment const &ls1, LineSegment const &ls2)
OptCrossing Geom::intersection (Ray const &r1, Ray const &r2)
OptCrossing Geom::intersection (Line const &l1, Line const &l2)
OptCrossing Geom::intersection (Ray const &r1, LineSegment const &ls2)
OptCrossing Geom::intersection (LineSegment const &ls1, Ray const &r2)
OptCrossing Geom::intersection (Line const &l1, LineSegment const &ls2)
OptCrossing Geom::intersection (LineSegment const &ls1, Line const &l2)
OptCrossing Geom::intersection (Line const &l1, Ray const &r2)
OptCrossing Geom::intersection (Ray const &r1, Line const &l2)
OptCrossing Geom::detail::intersection_impl (LineSegment const &ls1, Ray const &r2, unsigned int i)
OptCrossing Geom::detail::intersection_impl (LineSegment const &ls1, Line const &l2, unsigned int i)
OptCrossing Geom::detail::intersection_impl (Ray const &r1, Line const &l2, unsigned int i)
Line Geom::make_angle_bisector_line (Point const &A, Point const &O, Point const &B)
Line Geom::make_bisector_line (LineSegment const &_segment)
Line Geom::make_orthogonal_line (Point const &_point, Line const &_line)
Line Geom::make_parallel_line (Point const &_point, Line const &_line)
LineSegment Geom::projection (LineSegment const &_segment, Line const &_line)
Point Geom::projection (Point const &_point, Line const &_line)


Generated by  Doxygen 1.6.0   Back to index