gdxapp4d/gdxapp4d-lib-unicodezd/src/main/java/love/distributedrebirth/unicode4d/draw/DrawGlyphContour.java
2022-10-20 03:06:56 +02:00

31 lines
716 B
Java

package love.distributedrebirth.unicode4d.draw;
import java.util.ArrayList;
import java.util.List;
import love.distributedrebirth.bassboon.clazz.BãßBȍőnAuthor注;
@BãßBȍőnAuthor注(name = "للَّٰهِilLצسُو", copyright = "©Δ∞ 仙上主天")
public class DrawGlyphContour {
private final List<ImGlyphPoint> points = new ArrayList<>();
public class ImGlyphPoint {
int x;
int y;
boolean onCurve;
public ImGlyphPoint(int x, int y, boolean onCurve) {
this.x = x;
this.y = y;
this.onCurve = onCurve;
}
}
public void point(int x, int y, boolean onCurve) {
points.add(new ImGlyphPoint(x,y, onCurve));
}
public List<ImGlyphPoint> getPoints() {
return points;
}
}