\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)
CGAL 4.6.1 - 2D Triangulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
CGAL::Weighted_point< Pt, Wt > Class Template Reference

#include <CGAL/Weighted_point.h>

Inherits from

Pt.

Definition

The class Weighted_point 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.

See Also
CGAL::Regular_triangulation_euclidean_traits_2<Rep,Weight>
CGAL::Regular_triangulation_euclidean_traits_3<R,Weight>

Types

Pt Point
 The point type.
 
Wt Weight
 The weight type.
 

Creation

 Weighted_point (Weighted_point wq)
 copy constructor.
 
 Weighted_point (Point p=Point(), Weight w=Weight(0))
 
 Weighted_point (FT x, FT y)
 Constructs the point from x and y coordinates, with a weight of 0. More...
 
 Weighted_point (FT x, FT y, FT z)
 Constructs the point from x, y and z coordinates, with a weight of 0. More...
 

Access Functions

Point point () const
 
Weight weight () const
 

Constructor & Destructor Documentation

template<typename Pt , typename Wt >
CGAL::Weighted_point< Pt, Wt >::Weighted_point ( FT  x,
FT  y 
)

Constructs the point from x and y coordinates, with a weight of 0.

Requires that the ambient dimension be 2.

template<typename Pt , typename Wt >
CGAL::Weighted_point< Pt, Wt >::Weighted_point ( 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.