Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] basic question about Point_2

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] basic question about Point_2


Chronological Thread 
  • From:
  • To:
  • Subject: Re: [cgal-discuss] basic question about Point_2
  • Date: Wed, 24 Oct 2007 13:52:42 +0200

Andreas Fabri wrote:

wrote:

what is the ifference between x and hx in Point_2? I mean if my point is Point_2 p(2, 4.5)

what are the values:
p.x(), p.y(), p.hx(), p.hy(), p.w()??

Thanks,



For Point_2<Cartesian> x and hx are the same, the same for y and hy,
and hw equals always 1.


For Point_2<Homogeneous> applied to your example gives

hx = 4
hy = 9
hw = 9

Andreas meant
hx = 4
hy = 9
hw = 2

and x = hx/hw
y = hy/hw

andreas



Archive powered by MHonArc 2.6.16.

Top of Page