Alias IntersectionScalar
Scalar used for constructed unique segment-intersection points.
alias IntersectionScalar(T) = double;
Initial geo-d policy:
int -> double long -> double float -> double double -> double
Topological classification remains exact in the input scalar domain. Construction is deliberately a separate, rounded operation.
Example
Example inspecting the constructed-intersection scalar policy.
import geo;
static assert(is(IntersectionScalar!int == double));
static assert(is(IntersectionScalar!long == double));
static assert(is(IntersectionScalar!float == double));
static assert(is(IntersectionScalar!double == double));
static assert(
!__traits(
compiles,
IntersectionScalar!real
)
);