CGAL 5.1 - Geometric Object Generators
RandomConvexSetTraits_2 Class Reference

#include <Concepts/RandomConvexSetTraits_2.h>

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. More...
 
typedef unspecified_type FT
 class used for doing computations on point and vector coordinates (has to fulfill field type requirements). More...
 
typedef unspecified_type Sum
 AdaptableBinaryFunction class: Point_2 \( \times\) Point_2 \( \rightarrow\) Point_2. More...
 
typedef unspecified_type Scale
 AdaptableBinaryFunction class: Point_2 \( \times\) FT \( \rightarrow\) Point_2. More...
 
typedef unspecified_type Max_coordinate
 AdaptableUnaryFunction class: Point_2 \( \rightarrow\) FT. More...
 
typedef unspecified_type Angle_less
 AdaptableBinaryFunction class: Point_2 \( \times\) Point_2 \( \rightarrow\) bool. More...
 

Operations

Point_2 origin () const
 return origin (neutral element for the Sum operation). More...
 

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.

◆ FT

typedef unspecified_type RandomConvexSetTraits_2::FT

class used for doing computations on point and vector coordinates (has to fulfill field type requirements).

◆ 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.

◆ Point_2

typedef unspecified_type RandomConvexSetTraits_2::Point_2

point class.

◆ 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.

Member Function Documentation

◆ origin()

Point_2 RandomConvexSetTraits_2::origin ( ) const

return origin (neutral element for the Sum operation).