Skip to content

Commit 936071c

Browse files
committed
warnins and documentation fixed.
1 parent 397376d commit 936071c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/java/eu/mihosoft/jcsg/ext/path/SVGLinearizer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
*/
2323
package eu.mihosoft.jcsg.ext.path;
2424

25-
import eu.mihosoft.jcsg.ext.path.internal.InternalBezierPath;
2625
import eu.mihosoft.vvecmath.Vector3d;
2726
import java.util.ArrayList;
2827
import java.util.List;
@@ -34,6 +33,7 @@
3433
*
3534
* @author Michael Hoffer <[email protected]>
3635
*/
36+
@SuppressWarnings( "deprecation" )
3737
public final class SVGLinearizer {
3838

3939
private SVGLinearizer() {
@@ -62,7 +62,8 @@ public static List<Vector3d> linearizePath(String svgPath, float step) {
6262
"Illegal step specified: step must be < 1!");
6363
}
6464

65-
InternalBezierPath path = new InternalBezierPath();
65+
eu.mihosoft.jcsg.ext.path.internal.InternalBezierPath path
66+
= new eu.mihosoft.jcsg.ext.path.internal.InternalBezierPath();
6667
path.parsePathString(svgPath);
6768

6869
List<Vector3d> result = new ArrayList<>((int) (1.0 / step));

src/main/java/eu/mihosoft/jcsg/ext/path/internal/InternalBezierPath.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,10 @@ static protected float nextFloat(LinkedList<String> l) {
139139
}
140140

141141
/**
142-
* Evaluates this animation element for the passed interpolation time.
143-
* Interp must be on [0..1].
142+
* Returns the specified sample point on this path.
144143
*
145-
* @param interp
146-
* @return
144+
* @param interp interpolation point (range: [0..1])
145+
* @return sample point
147146
*/
148147
public Vector3d eval(float interp) {
149148
SVGVector point = new SVGVector();

0 commit comments

Comments
 (0)