## CGAL::Weighted_point<Pt,Wt>

### Definition

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>

### Inherits From

Pt

### Types

Pt | Point; | The point type
Wt | Weight; | The weight type.
typedef Point::Rt | Rt; | The ring type

### Creation

Weighted_point<Pt,Wt> wp ( Point p=Point(), Weight w= Weight(0));

Weighted_point<Pt,Wt> wp ( Weighted_point wq);
| copy constructor.

### Access Functions

Point | wp.point ()
Weight | wp.weight ()

### See Also

CGAL::Regular_triangulation_euclidean_traits_2<Rep,Weight>
CGAL::Regular_triangulation_euclidean_traits_3<R,Weight>.