<intersection>
<intersection> is a Graphical
component that determines the intersection point of a pair of graphical objects. These can be <line>, <circle>, or <polygon> components.
The <intersection> component renders a point (or points in the case of multiple intersections)
when nested inside a <graph> component, and renders a coordinate pair (or a list of coordinate pairs) otherwise.
Attributes and Properties
| Attribute | Type | Values |
|---|---|---|
asList = "…" | "true" "false" |
The <intersection> component shares properties with the <point> component
Example: <intersection> of two lines
When inside a <graph>, the <intersection> component renders a point.
Outside the graph, the coordinates of the intersection are rendered.
Example: <intersection> of line and polygon
When more than one <intersection> occurs between the specified components,
the intersection points are stored in an array. Individual points can be accessed with array notation.
Example: <intersection> of circle and polyline
When more than one <intersection> occurs between the specified components,
the intersection points are stored in an array. Individual
points can be accessed with array notation.
Example: No <intersection> exists
Doenet does not return anything when no <intersection> exists.
Example: Overlapping lines
Doenet does not return anything when lines directly overlap.
Example: Collinear edges and lines
When a line and the edge of a polygon overlap, only the endpoints of the overlapped region are counted as intersection points.
Attribute Example: styleNumber
The style of an <intersection> component can be adjusted
with the styleNumber attribute in the same manner as a <point>.