Alias MetricScalar

Floating-point computation type used by elementary metric operations.

alias MetricScalar(T) = real;

Storage precision and metric computation precision are deliberately

separate

int -> double long -> double float -> double double -> double real -> real

Example

Example inspecting the metric computation scalar policy.

import geo;

static assert(is(MetricScalar!int == double));
static assert(is(MetricScalar!long == double));
static assert(is(MetricScalar!float == double));
static assert(is(MetricScalar!double == double));
static assert(is(MetricScalar!real == real));