bezier: correct ordering of order 2 eval
This commit is contained in:
parent
8a43c0f416
commit
a0167e07d7
@ -42,12 +42,12 @@ namespace util {
|
||||
CHECK_GE (t, 0);
|
||||
CHECK_LE (t, 1);
|
||||
|
||||
auto v0 = t * m_points[0];
|
||||
auto v1 = (1 - t) * m_points[1];
|
||||
auto v0 = (1 - t) * m_points[0];
|
||||
auto v1 = t * m_points[1];
|
||||
|
||||
return {
|
||||
v0.x + v1.x,
|
||||
v0.y + v0.y
|
||||
v0.y + v1.y
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user