Algolib
Data structures
Graphs
Geometry
Convex Hull
Intersections
getIntersection()
getIntersection()
Line
Polygon
Projections
Segment
Shape
2D Vector
3D Vector
Mathematics
Optimization
Sorting
Strings
Trees
Simplex
Two-SAT
JSON
Constants
Shortcuts
Utility
Algolib
Geometry
Intersections
View page source
Intersections
Functions
template
<
class
T
>
Shape
<
T
>
getIntersection
(
const
Line
<
T
>
line1
,
const
Line
<
T
>
line2
)
Computes the intersection of two lines.
template
<
class
T
>
Shape
<
T
>
getIntersection
(
const
Line
<
T
>
line
,
const
Segment
<
T
>
seg
)