mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-14 02:59:09 -04:00
Code gardening
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user