CGAL 4.10 - 2D and 3D Linear Geometry Kernel
|
#include <CGAL/Weighted_point_2.h>
An object of the class Weighted_point_2
is a tuple of a 2D point and a scalar weight.
Operators
The following operations can be applied on points:
Point_2<Kernel>
Kernel::WeightedPoint_2
Creation | |
Weighted_point_2 (const Origin &ORIGIN) | |
introduces a weighted point with Cartesian coordinates (0,0) and weight 0 . | |
Weighted_point_2 (const Point_2< Kernel > &p) | |
introduces a weighted point from point p and weight 0 . | |
Weighted_point_2 (const Point_2< Kernel > &p, Kernel::FT &w) | |
introduces a weighted point from point p and weight w . | |
Weighted_point_2 (const Kernel::FT &x, const Kernel::FT &y) | |
introduces a weighted point with coordinates x , y , and weight 0. | |
Operations | |
Point_2< Kernel > | point () const |
returns the point of the weighted point. | |
Kernel::FT | weight () const |
returns the weight of the weighted point. | |