MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / LNLIB_KV_rescale

Function LNLIB_KV_rescale

dotnet/CAPI/src/KnotVectorUtils_CAPI.cpp:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26void LNLIB_KV_rescale(
27 const double* knot_vector,
28 int knot_vector_count,
29 double min,
30 double max,
31 double* result)
32{
33 std::vector<double> kv(knot_vector, knot_vector + knot_vector_count);
34 auto res = LNLib::KnotVectorUtils::Rescale(kv, min, max);
35 std::memcpy(result, res.data(), knot_vector_count * sizeof(double));
36}
37
38int LNLIB_KV_is_uniform(
39 const double* knot_vector,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected