MCPcopy Create free account
hub / github.com/andrewwillmott/splines-lib / Split

Function Split

Splines.cpp:1606–1613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1604 }
1605
1606 void Split(const SubSpline2& s, SubSpline2* s0, SubSpline2* s1)
1607 {
1608 ::Split(s.mSpline.xb, &s0->mSpline.xb, &s1->mSpline.xb);
1609 ::Split(s.mSpline.yb, &s0->mSpline.yb, &s1->mSpline.yb);
1610
1611 s0->mParent = s.mParent;
1612 s1->mParent = s.mParent;
1613 }
1614}
1615
1616int SL::FindNearbySplines(Vec2f p, int numSplines, const Spline2 splines[], vector<SubSpline2>* results, float* smallestFarOut, int numIter)

Callers 7

LengthMethod · 0.85
SplitMethod · 0.85
SubdivideForLengthFunction · 0.85
SubdivideForTFunction · 0.85
FindNearbySplinesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected