Skip to content

Commit

Permalink
fix: const pointers in bezier interpolations
Browse files Browse the repository at this point in the history
  • Loading branch information
DoggyXomaX committed Aug 3, 2024
1 parent 34dc588 commit a3b250f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/bezier2.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ typedef struct Bezier2f_s {
Bezier2 Bezier2_CreateLinear(double x0, double y0, double x1, double y1);
Bezier2 Bezier2_CreateQuadratic(double x0, double y0, double x1, double y1, double x2, double y2);
Bezier2 Bezier2_CreateCubic(double x0, double y0, double x1, double y1, double x2, double y2, double x3, double y3);
Point2 Bezier2_Get(Bezier2* this, double t);
Point2 Bezier2_Get(const Bezier2* this, double t);

Bezier2f Bezier2f_CreateLinear(float x0, float y0, float x1, float y1);
Bezier2f Bezier2f_CreateQuadratic(float x0, float y0, float x1, float y1, float x2, float y2);
Bezier2f Bezier2f_CreateCubic(float x0, float y0, float x1, float y1, float x2, float y2, float x3, float y3);
Point2f Bezier2f_Get(Bezier2f* this, float t);
Point2f Bezier2f_Get(const Bezier2f* this, float t);

#endif // __HMAH_BEZIER2_H__
4 changes: 2 additions & 2 deletions src/bezier3.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ typedef struct Bezier3f_s {
Bezier3 Bezier3_CreateLinear(double x0, double y0, double z0, double x1, double y1, double z1);
Bezier3 Bezier3_CreateQuadratic(double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2);
Bezier3 Bezier3_CreateCubic(double x0, double y0, double z0, double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3);
Point3 Bezier3_Get(Bezier3* this, double t);
Point3 Bezier3_Get(const Bezier3* this, double t);

Bezier3f Bezier3f_CreateLinear(float x0, float y0, float z0, float x1, float y1, float z1);
Bezier3f Bezier3f_CreateQuadratic(float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float z2);
Bezier3f Bezier3f_CreateCubic(float x0, float y0, float z0, float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3);
Point3f Bezier3f_Get(Bezier3f* this, float t);
Point3f Bezier3f_Get(const Bezier3f* this, float t);

#endif // __HMAH_BEZIER3_H_

0 comments on commit a3b250f

Please sign in to comment.