Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Constructing a parallel line segment

Subject: CGAL users discussion list

List archive

[cgal-discuss] Constructing a parallel line segment


Chronological Thread 
  • From: billy <>
  • To:
  • Subject: [cgal-discuss] Constructing a parallel line segment
  • Date: Wed, 20 Nov 2019 21:13:09 -0600 (CST)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=Pass
  • Ironport-phdr: 9a23:OfAerhPQAYAxB6HN918l6mtUPXoX/o7sNwtQ0KIMzox0LfT8rarrMEGX3/hxlliBBdydt6sfzbOL6uu9BCQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTagb75+Ngi6oAXMusUZgYZvKrs6xwfUrHdPZ+lY335jK0iJnxb76Mew/Zpj/DpVtvk86cNOUrj0crohQ7BAAzsoL2465MvwtRneVgSP/WcTUn8XkhVTHQfI6gzxU4rrvSv7sup93zSaPdHzQLspVzmu87tnRRn1gygAKjA57XrXitRug61HvBKvqRt/w4vOb4GUMvp1Y6fRcNweSGZEWMtaSi5PDZ6mb4YXAeQPPfhWoYrgqVQBsRSwChKhBP/txzNUmnP6wbE23/onHArb3AIgBdUOsHHModruNacSVeS1zanVxjjEdPxW2DP96IzIcxA5u/GMXK5/ftTVxEQsFgPFlU6dqYPgPzyP1+QNt3KX4PZnVeKqkmMqrRx6rDaoxscpkIbJh4QVx0jC9Spj24k6Ptm4R1BhbdG4F5tQsjmWN4pzQsMtXmFoojw2xaEBuZ6+eiUB1ZcpxwbHZvCad4WF5gjvWeiSLDtih39oeaizihez/EWm1+byTNO70ExQoSpAitTMtm4C1xjU6sWfTPtw8V2t2TCV2A/I8e5EJV47mbDHJJ4mx748jpsTsULdES/qgEj6kaube0E+9uWm6OnreLbrq56GO4J1iwzyKqEulda+AeQ8PAgORW+b+eGk2bL4/E35RLFKj/0ukqnDsZDVOdoUq6q6Dg9UyYYu8Bm/DzK839QZmXkLNk5KeBWCj4TxIVHBPOj4Deujg1SriDpk2//GMaflApnUM3fDkazhcqpg605H0wo+1stf5pJRCrEZOv3/QE7xtNrCDh84KQO42ejnCM8unr8ZDGmAC6vcPKLJukKT/couJfONbckbomXTMf8gsvTviXso0QsXfK2tzIMNaXu1T6RnOG2WZHPthpEKFmJc7Vl2d/DjlFDXCW0bXH21Ra9pumBiVdCWSLzbT4Xou4SvmSe2GpoPOzJAVhaKGH3ic4jCUPAJOnvLc51R1wccXL3kcLcPkBSntQv00b1id7OG9SgRtJal399wtbaKyUMCsAdsBsHY6FmjCnlulzpRFTAz1aF750d6zwXb3A==

I'm using the 2D Arrangements package, and I want to construct the boundary
of a "hippodrome" around a line segment. Here's what it looks like around a
line segment 'e' https://imgur.com/UYNte2Q
To do this I'm trying to construct the two parallel line segments, and then
the two semicircles. The trouble is actually constructing those 4 points
where the parallel segments meet the semicircles.
If I could construct a vector perpendicular to the line segment with
magnitude r, I could construct a Transform from this vector and apply that
to the line segment and I'd be done. The Vector_2 class does support
constructing perpendicular vectors, but there seems to be no clear way to
make this vector have a chosen magnitude. The Direction_2 class says it
doesn't do normalisation, so it doesn't seem clear at all how to construct a
unit vector perpendicular to the line segment.



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/



Archive powered by MHonArc 2.6.18.

Top of Page