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

Method GetContinuity

src/LNLib/Algorithm/KnotVectorUtils.cpp:50–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50int LNLib::KnotVectorUtils::GetContinuity(int degree, const std::vector<double>& knotVector, double knot)
51{
52 VALIDATE_ARGUMENT(degree > 0, "degree", "Degree must be greater than zero.");
53 int multi = Polynomials::GetKnotMultiplicity(knotVector, knot);
54 return degree - multi;
55}
56
57std::vector<double> LNLib::KnotVectorUtils::Rescale(const std::vector<double>& knotVector, double min, double max)
58{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected