diff --git a/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtAnchor.java b/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtAnchor.java index 6cb3144..f53053e 100644 --- a/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtAnchor.java +++ b/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtAnchor.java @@ -56,7 +56,7 @@ public CurveBuilderAtAnchor anchorPoint(float x, float y){ */ public CurveBuilderAtAnchor anchorPoint(Vector2f nextAnchor ){ //no checkReuse() as the call to controlPoint1 will do that - //simulate a straight line using a Bézier curve + //simulate a straight line using a Bézier-like curve Vector2f midOne = currentAnchor.mult(2f/3).add(nextAnchor.mult(1f/3)); Vector2f midTwo = currentAnchor.mult(1f/3).add(nextAnchor.mult(2f/3)); return controlPoint1(midOne).controlPoint2(midTwo).anchorPoint(nextAnchor); diff --git a/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtControlPoint1.java b/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtControlPoint1.java index 741f192..9afa29a 100644 --- a/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtControlPoint1.java +++ b/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtControlPoint1.java @@ -13,9 +13,9 @@ public CurveBuilderAtControlPoint1(Curve curveBeingBuilt, Vector2f controlPointI } /** - * Adds a point that the curve will attempt to move towards but may not actually touch. + * Adds a point that the curve will attempt to move towards (but may not actually touch). * - * The 2 control points are used to define a cubic Bézier curve between 2 anchors + * The 2 control points are used to define a cubic Bézier-like curve between 2 anchors * @param x the control point's x * @param y the control point's y * @return a CurveBuilderAtControlPoint1 a part of the curve builder system @@ -27,7 +27,7 @@ public CurveBuilderAtControlPoint2 controlPoint2( float x, float y ){ /** * Adds a point that the curve will attempt to move towards (but may not actually touch). * - * The 2 control points are used to define a cubic Bézier curve between 2 anchors + * The 2 control points are used to define a cubic Bézier-like curve between 2 anchors * @param nextControlPoint the control point * @return a CurveBuilderAtControlPoint1 a part of the curve builder system */ diff --git a/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtControlPoint2.java b/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtControlPoint2.java index bd1053f..5caace0 100644 --- a/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtControlPoint2.java +++ b/src/main/java/com/epaga/particles/valuetypes/curvebuilder/CurveBuilderAtControlPoint2.java @@ -16,7 +16,7 @@ public CurveBuilderAtControlPoint2(Curve curveBeingBuilt, Vector2f inControlPoin /** * Adds a point that the curve go through. * - * Anchors are the starts and ends of cubic Bézier curves + * Anchors are the starts and ends of cubic Bézier-like curves * @param x the anchor point's x * @param y the anchor point's y * @return a CurveBuilderAtAnchor a part of the curve builder system @@ -26,9 +26,9 @@ public CurveBuilderAtAnchor anchorPoint(float x, float y){ } /** - * Adds a point that the curve go through. + * Adds a point that the curve will go through. * - * Anchors are the starts and ends of cubic Bézier curves + * Anchors are the starts and ends of cubic Bézier-like curves * @param nextAnchor the anchor point * @return a CurveBuilderAtAnchor a part of the curve builder system */