The class Weighted_point<Pt,Wt> provides a type associating a point type Pt with a weight type Wt. It is used in the traits classes Regular_triangulation_euclidean_traits_2 and Regular_triangulation_euclidean_traits_3.
#include <CGAL/Weighted_point.h>
Pt | Point; | The point type |
Wt | Weight; | The weight type. |
Weighted_point<Pt,Wt> wp ( Weighted_point wq); | |
copy constructor.
| |
Weighted_point<Pt,Wt> wp ( Point p=Point(), Weight w= Weight(0)); | |
Weighted_point<Pt,Wt> wp ( FT x, FT y); | |
Constructs the point from x
and y coordinates, with a weight of 0. Requires that the ambient
dimension be 2.
| |
Weighted_point<Pt,Wt> wp ( FT x, FT y, FT z); | |
Constructs the point from
x, y and z coordinates, with a weight of 0. Requires that
the ambient dimension be 3.
|
Point | wp.point () const | |
Weight | wp.weight () const |