ExtendedKernelTraits_2 is a kernel concept providing extended geometry1. Let K be an instance of the data type ExtendedKernelTraits_2. The central notion of extended geomtry are extended points. An extended point represents either a standard affine point of the Cartesian plane or a non-standard point representing the equivalence class of rays where two rays are equivalent if one is contained in the other.
Let R be an infinimaximal number2, F be the square box with corners NW(-R,R), NE(R,R), SE(R,-R), and SW(-R,-R). Let p be a non-standard point and let r be a ray defining it. If the frame F contains the source point of r then let p(R) be the intersection of r with the frame F, if F does not contain the source of r then p(R) is undefined. For a standard point let p(R) be equal to p if p is contained in the frame F and let p(R) be undefined otherwise. Clearly, for any standard or non-standard point p, p(R) is defined for any sufficiently large R. Let f be any function on standard points, say with k arguments. We call f extensible if for any k points p1, , pk the function value f(p1(R), ,pk(R)) is constant for all sufficiently large R. We define this value as f(p1, ,pk). Predicates like lexicographic order of points, orientation, and incircle tests are extensible.
An extended segment is defined by two extended points such that it is either an affine segment, an affine ray, an affine line, or a segment that is part of the square box. Extended directions extend the affine notion of direction to extended objects.
This extended geometry concept serves two purposes. It offers functionality for changing between standard affine and extended geometry. At the same time it provides extensible geometric primitives on the extended geometric objects.
| |
the ring type of our extended kernel.
| |
| |
extended points.
| |
| |
extended segments.
| |
| |
extended directions.
| |
| |
a type descriptor for extended points.
|
|
| |||
creates an extended point and initializes it to the standard point p. | ||||
|
| |||
creates an extended point and initializes it to the equivalence class of all the rays underlying the oriented line l. | ||||
|
| |||
creates an extended point and initializes it to the equivalence class of all the rays underlying the oriented line l(p1,p2). | ||||
|
| |||
creates an extended point and initializes it to the equivalence class of all the rays underlying the ray starting in p in direction d. | ||||
|
| |||
creates an extended point and initializes it to the equivalence class of all the rays underlying the oriented line opposite to l. | ||||
|
| determines the type of p and returns it. | ||
|
| returns true iff p is a standard point. | ||
|
|
returns
the standard point represented by p.
| ||
|
|
returns
the oriented line representing the bundle of rays defining p.
| ||
|
|
a ray
defining p.
| ||
|
| returns the point on the northeast frame corner. | ||
|
| returns the point on the southeast frame corner. | ||
|
| returns the point on the northwest frame corner. | ||
|
| returns the point on the southwest frame corner. |
|
| returns the source point of s. | ||
|
| returns the target point of s. | ||
|
| |||
constructs a segment pq. | ||||
|
| |||
returns the orientation of p with respect to the line through s. | ||||
|
| |||
returns the orientation of p3 with respect to the line through p1p2. | ||||
|
| |||
return true iff the p3 is left of the line through p1p2. | ||||
|
| return true iff s is degenerate. | ||
|
| |||
returns the lexicographic order of p1 and p2. | ||||
|
| |||
returns the order on the x-coordinates of p1 and p2. | ||||
|
| |||
returns the order on the y-coordinates of p1 and p2. | ||||
|
| |||
returns the point of intersection of the lines supported by
s1 and s2.
| ||||
|
| |||
returns the direction of the vector p2 - p1. | ||||
|
| |||
returns true iff d2 is in the interior of the counterclockwise angular sector between d1 and d3. | ||||
|
| |||
returns true iff p2 is in the relative interior of the segment p1p3. | ||||
|
| |||
returns true iff s contains p. | ||||
|
| |||
returns true iff ||p1-p2|| < ||p3-p4||. | ||||
|
| returns a unique identifier for kernel object Input/Output. Usually this should be the name of the model. |
CGAL::Extended_cartesian<FT>
CGAL::Extended_homogeneous<RT>
CGAL::Filtered_extended_homogeneous<RT>
1 | It is called extended geometry for simplicity, though it is not a real geometry in the classical sense. |
2 | A finite but very large number. |