This topic provides a reference table for all automatic type conversions to interval, sorted by merit.
Fair Conversions
This section lists all fair
conversions to the interval type. A fair conversion indicates the types involved are closely related in a data layout sense, though not necessarily in a conceptual sense. Although these conversions may fail or narrow, it is nevertheless considered decent practice to rely upon them. Examples in this category include conversions from booleans to integers, or from curves to intervals.
| From | Explanation |
|---|---|
| arc | Extracts the parameter domain of the arc. |
| circle | Extracts the parameter domain of the circle. |
| curve | Extracts the parameter domain of the curve. |
| integer | Creates an interval from zero to the integer value. |
| integer (big) | Creates an interval from zero to the integer value. |
| line | Extracts the parameter domain of the line. |
| number | Creates an interval from zero to the number value. |
| polyline | Extracts the parameter domain of the polyline. |
| rectangle | Extracts the parameter domain of the rectangle. |
| triangle | Extracts the parameter domain of the triangle. |
Plausible Conversions
This section lists all plausible
conversions to the interval type. A plausible conversion indicates a non-straightforward, but still a reasonable conversion between two types sharing a salient quality, or where one is an obvious sub-type of the other. Any plausible conversion can also be achieved through the explicit use of standard components. Examples in this category include conversions from points to planes, or from boxes to rectangles.
| From | Explanation |
|---|---|
| boolean | Converts false to empty interval, true to unit interval. |
| complex number | Creates an interval from zero to the real component. |
Strange Conversions
This section lists all strange
conversions to the interval type. A strange conversion indicates a peculiar, but occasionally sensible, translation between types. However, it is equally likely that the conversion was not intended and thus signals a mistake in the algorithm design, which is why this conversion level is the default for showing conversion warnings. Examples in this category include the conversion from decimal numbers to languages, or from views to meshes. Any strange conversion can also be achieved through the explicit use of standard components.
| From | Explanation |
|---|---|
| vector | Creates an interval from zero to the vector length. |
Weird Conversions
This section lists all weird
conversions to the interval type. A weird conversion indicates an exotic relationship between types, which is almost certainly unintended on the part of the user. However, very occasionally these conversions make sense and allow the user to avoid the use of several components to achieve the same result. No standard conversion currently falls into this category.
| From | Explanation |
|---|---|
| point2 | Creates an interval from zero to the point's distance from the origin. |
| point3 | Creates an interval from zero to the point's distance from the origin. |