MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getControlPointAtIndex

Method getControlPointAtIndex

Engine/Bezier.cpp:3076–3089  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3074}
3075
3076BezierCPPtr
3077Bezier::getControlPointAtIndex(int index) const
3078{
3079 QMutexLocker l(&itemMutex);
3080
3081 if ( (index < 0) || ( index >= (int)_imp->points.size() ) ) {
3082 return BezierCPPtr();
3083 }
3084
3085 BezierCPs::const_iterator it = _imp->points.begin();
3086 std::advance(it, index);
3087
3088 return *it;
3089}
3090
3091BezierCPPtr
3092Bezier::getFeatherPointAtIndex(int index) const

Callers 3

makeEllipseMethod · 0.80
redoMethod · 0.80

Calls 2

sizeMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected