diff options
| author | Maximilian Albert <maximilian.albert@gmail.com> | 2007-09-01 13:29:40 +0000 |
|---|---|---|
| committer | cilix42 <cilix42@users.sourceforge.net> | 2007-09-01 13:29:40 +0000 |
| commit | 342d2fa9c8f2612684843f2c30ecd875126f0667 (patch) | |
| tree | a9e5b55304697e06f8cd77ab9068c9a21540c084 /src/line-geometry.h | |
| parent | r16474@tres: ted | 2007-08-31 21:37:33 -0700 (diff) | |
| download | inkscape-342d2fa9c8f2612684843f2c30ecd875126f0667.tar.gz inkscape-342d2fa9c8f2612684843f2c30ecd875126f0667.zip | |
Infrastructure to set direction of infinite VPs (now adjustable by some shortcuts; this may be removed later on)
(bzr r3657)
Diffstat (limited to 'src/line-geometry.h')
| -rw-r--r-- | src/line-geometry.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/line-geometry.h b/src/line-geometry.h index fc8f157e9..e678c4031 100644 --- a/src/line-geometry.h +++ b/src/line-geometry.h @@ -55,6 +55,10 @@ protected: NR::Coord d0; }; +inline double determinant (NR::Point const &a, NR::Point const &b) +{ + return (a[NR::X] * b[NR::Y] - a[NR::Y] * b[NR::X]); +} std::pair<double, double> coordinates (NR::Point const &v1, NR::Point const &v2, NR::Point const &w); bool lies_in_sector (NR::Point const &v1, NR::Point const &v2, NR::Point const &w); bool lies_in_quadrangle (NR::Point const &A, NR::Point const &B, NR::Point const &C, NR::Point const &D, NR::Point const &pt); |
