Code gardening
This commit is contained in:
parent
23c06bc6f1
commit
faf42366ec
1 changed files with 213 additions and 223 deletions
|
|
@ -1946,7 +1946,7 @@ void DrawSplineBezierCubic(const Vector2 *points, int pointCount, float thick, C
|
|||
// Draw spline segment: Linear, 2 points
|
||||
void DrawSplineSegmentLinear(Vector2 p1, Vector2 p2, float thick, Color color)
|
||||
{
|
||||
// NOTE: For the linear spline no subdivisions are used, just a single quad
|
||||
// NOTE: For the linear spline no subdivisions are used, only a single quad
|
||||
|
||||
Vector2 delta = { p2.x - p1.x, p2.y - p1.y };
|
||||
float length = sqrtf(delta.x*delta.x + delta.y*delta.y);
|
||||
|
|
|
|||
Loading…
Reference in a new issue