Function GeodesicIntersectionWorkspace.tryFromStorage
Bind caller-owned scratch arrays into a reusable enumeration workspace.
static bool tryFromStorage(
GeodesicIntersectionWorkspaceEntry!T[] starts,
bool[] skip,
GeodesicIntersectionWorkspaceEntry!T[] found,
GeodesicIntersectionWorkspaceEntry!T[] coincidentCenters,
out GeodesicIntersectionWorkspace result
) pure nothrow @nogc @safe;
Example
Example preparing caller-owned workspace.
GeodesicIntersectionWorkspaceEntry!double[4] starts;
bool[4] skip;
GeodesicIntersectionWorkspaceEntry!double[8] found;
GeodesicIntersectionWorkspaceEntry!double[4] centers;
GeodesicIntersectionWorkspace!double workspace;
assert(GeodesicIntersectionWorkspace!double .tryFromStorage(
starts[], skip[], found[], centers[], workspace));