Package armyc2.c2sd.renderer.utilities
Class PathUtilties
java.lang.Object
armyc2.c2sd.renderer.utilities.PathUtilties
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddEllipse(Path path, float x, float y, float w, float h) static voidaddEllipse(Path path, float x, float y, float w, float h, Path.Direction dir) static voidstatic voidaddRoundedRect(Path path, float x, float y, float w, float h, float rw, float rh) static voidaddRoundedRect(Path path, float x, float y, float w, float h, float rw, float rh, Path.Direction dir) static voidstatic voidstatic RectFmakeRectF(float x, float y, float w, float h)
-
Constructor Details
-
PathUtilties
public PathUtilties()
-
-
Method Details
-
makeRectF
-
addLine
-
addEllipse
-
addEllipse
-
arc
- Parameters:
path-x-y-r- radiussAngle- start angle in degreeseAngle- how many degrees relative to sAngle
-
arc
public static void arc(Path path, float x, float y, float r, float sAngle, float eAngle, boolean moveTo) - Parameters:
path-x-y-r- radiussAngle- start angle in degreeseAngle- how many degrees relative to sAnglemoveTo- If true, begin a new contour
-
addRoundedRect
public static void addRoundedRect(Path path, float x, float y, float w, float h, float rw, float rh) -
addRoundedRect
public static void addRoundedRect(Path path, float x, float y, float w, float h, float rw, float rh, Path.Direction dir)
-