<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
Attributes for <intersection>
Other (1)
asListboolean. Default value: true. Whether to render the items separated by commas (true) or with no separator (false).
Common to all components (9)
copyreference. Create an independent copy of another component by reference. Enter a references a $name.
disabledboolean. Default value: false. Whether this component is disabled and cannot be interacted with.
extendreference. Extend another component by reference, inheriting its children and attributes. Enter a reference as $name.
fixedboolean. Default value: false. Whether this component's value is fixed and cannot be modified.
fixLocationboolean. Default value: false. Whether this component's location is fixed (preventing it from being moved while still allowing other modifications).
hideboolean. Default value: false. Whether to hide this component from the rendered output.
isResponseboolean. Default value: false. Whether this component is treated as a response for the purposes of assessment.
nametext. The name used to reference this component from elsewhere in the document.
Style number applied to the resulting intersection components.
Properties for <intersection name="i">
Common to all components (3)
$i.doenetMLtext. The DoenetML source code that produced this component.
$i.hideboolean. Whether to hide this component from the rendered output.
$i.isResponseboolean. Whether this component is treated as a response for the purposes of assessment.
Examples
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 Examples
Attribute Example: styleNumber
The style of an <intersection> component can be adjusted
with the styleNumber attribute in the same manner as a <point>.