Skip to content

Commit

Permalink
Tweak Catenary
Browse files Browse the repository at this point in the history
  • Loading branch information
FigBug committed Jul 31, 2023
1 parent a3be783 commit 4130b20
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions modules/gin/geometry/gin_catenary.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,15 @@ class Catenary
{
public:
Catenary (float x0, float y0, float x1, float y1, float addLength, int numIterations = 1)
{
calculate (x0, y0, x1, y1, addLength, numIterations);
}

void calculate (float x0, float y0, float x1, float y1, float addLength, int numIterations = 1)
{
jassert (! juce::exactlyEqual (x0, x1));
jassert (addLength > 0.0f);

// make sure x1 is right
if (x0 > x1)
{
Expand Down

0 comments on commit 4130b20

Please sign in to comment.