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

Method FrameX

Splines.cpp:919–928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

917}
918
919Mat2f SL::FrameX(const Spline2& spline, float t)
920{
921 Vec2f v = Velocity(spline, t);
922
923 Mat2f frame;
924 frame.x = norm_safe(v); // x = forward
925 frame.y = cross(frame.x); // y = left always
926
927 return frame;
928}
929
930float SL::LengthEstimate(const Spline2& s, float* error)
931{

Callers

nothing calls this directly

Calls 3

norm_safeFunction · 0.85
crossFunction · 0.85
cross_zFunction · 0.85

Tested by

no test coverage detected