CGAL 6.2 - Geometric Object Generators: RandomConvexSetTraits_2 Concept Reference

CGAL 6.2 - Geometric Object Generators

Loading...
Searching...
No Matches
List of all members
RandomConvexSetTraits_2 Concept Reference
Reference Manual » Concepts

## Definition

The concept `RandomConvexSetTraits_2` describes the requirements of the traits class for the function `random_convex_set_2()`.

Has models
  `CGAL::Random_convex_set_traits_2<Kernel>`

## Types
typedef unspecified_type | Point_2
| point class.
typedef unspecified_type | FT
| class used for doing computations on point and vector coordinates (has to fulfill field type requirements).
typedef unspecified_type | Sum
| AdaptableBinaryFunction class: `Point_2` \( \times\) `Point_2` \( \rightarrow\) `Point_2`.
typedef unspecified_type | Scale
| AdaptableBinaryFunction class: `Point_2` \( \times\) `FT` \( \rightarrow\) `Point_2`.
typedef unspecified_type | Max_coordinate
| AdaptableUnaryFunction class: `Point_2` \( \rightarrow\) `FT`.
typedef unspecified_type | Angle_less
| AdaptableBinaryFunction class: `Point_2` \( \times\) `Point_2` \( \rightarrow\) `bool`.

## Operations
Point_2 | origin () const
| return origin (neutral element for the `Sum` operation).

## Member Typedef Documentation

## ◆ Angle_less

typedef unspecified_type RandomConvexSetTraits_2::Angle_less

AdaptableBinaryFunction class: `Point_2` \( \times\) `Point_2` \( \rightarrow\) `bool`.

It returns `true`, iff the angle of the direction corresponding to the first argument with respect to the positive \( x\)-axis is less than the angle of the direction corresponding to the second argument.

## ◆ Max_coordinate

typedef unspecified_type RandomConvexSetTraits_2::Max_coordinate

AdaptableUnaryFunction class: `Point_2` \( \rightarrow\) `FT`.

`Max_coordinate(p)` returns the coordinate of `p` with largest absolute value.

## ◆ Scale

typedef unspecified_type RandomConvexSetTraits_2::Scale

AdaptableBinaryFunction class: `Point_2` \( \times\) `FT` \( \rightarrow\) `Point_2`.

`Scale(p,k)` returns the point that results from scaling the vector corresponding to `p` by a factor of `k`.

## ◆ Sum

typedef unspecified_type RandomConvexSetTraits_2::Sum

AdaptableBinaryFunction class: `Point_2` \( \times\) `Point_2` \( \rightarrow\) `Point_2`.

It returns the point that results from adding the vectors corresponding to both arguments.