Package arc.graphics.g2d
Class Lines
java.lang.Object
arc.graphics.g2d.Lines
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
arc
(float x, float y, float radius, float fraction) static void
arc
(float x, float y, float radius, float fraction, float rotation) static void
arc
(float x, float y, float radius, float fraction, float rotation, int sides) static void
static void
circle
(float x, float y, float rad) static int
circleVertices
(float rad) static void
curve
(float x1, float y1, float cx1, float cy1, float cx2, float cy2, float x2, float y2, int segments) static void
dashCircle
(float x, float y, float radius) static void
dashLine
(float x1, float y1, float x2, float y2, int divisions) static void
ellipse
(float x, float y, float rad, float width, float height, float rot) static void
endLine()
static void
endLine
(boolean wrap) static float
static void
line
(float x, float y, float x2, float y2) static void
line
(float x, float y, float x2, float y2, boolean cap) static void
line
(TextureRegion region, float x, float y, float x2, float y2, boolean cap) static void
lineAngle
(float x, float y, float angle, float length) static void
lineAngle
(float x, float y, float angle, float length, boolean cap) static void
lineAngle
(float x, float y, float angle, float length, float offset) static void
lineAngleCenter
(float x, float y, float angle, float length) static void
lineAngleCenter
(float x, float y, float angle, float length, boolean cap) static void
linePoint
(float x, float y) static void
static void
poly
(float x, float y, int sides, float radius) static void
poly
(float x, float y, int sides, float radius, float angle) static void
static void
polyline
(float[] points, int length, boolean wrap) static void
static void
quad
(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) static void
rect
(float x, float y, float width, float height) static void
rect
(float x, float y, float width, float height, float xspace, float yspace) static void
rect
(float x, float y, float width, float height, int space) static void
static void
setCirclePrecision
(float amount) Set the vertices used for drawing a line circle.static void
spikes
(float x, float y, float rad, float length, int spikes) static void
spikes
(float x, float y, float radius, float length, int spikes, float rot) static void
square
(float x, float y, float rad) static void
square
(float x, float y, float rad, float rot) static void
stroke
(float thick) static void
-
Field Details
-
useLegacyLine
public static boolean useLegacyLine
-
-
Constructor Details
-
Lines
public Lines()
-
-
Method Details
-
setCirclePrecision
public static void setCirclePrecision(float amount) Set the vertices used for drawing a line circle. -
circleVertices
public static int circleVertices(float rad) -
lineAngle
public static void lineAngle(float x, float y, float angle, float length, boolean cap) -
lineAngle
public static void lineAngle(float x, float y, float angle, float length) -
lineAngle
public static void lineAngle(float x, float y, float angle, float length, float offset) -
lineAngleCenter
public static void lineAngleCenter(float x, float y, float angle, float length, boolean cap) -
lineAngleCenter
public static void lineAngleCenter(float x, float y, float angle, float length) -
line
public static void line(float x, float y, float x2, float y2) -
line
public static void line(float x, float y, float x2, float y2, boolean cap) -
line
-
linePoint
-
linePoint
public static void linePoint(float x, float y) -
beginLine
public static void beginLine() -
endLine
public static void endLine() -
endLine
public static void endLine(boolean wrap) -
polyline
-
polyline
public static void polyline(float[] points, int length, boolean wrap) -
dashLine
public static void dashLine(float x1, float y1, float x2, float y2, int divisions) -
circle
public static void circle(float x, float y, float rad) -
ellipse
public static void ellipse(float x, float y, float rad, float width, float height, float rot) -
dashCircle
public static void dashCircle(float x, float y, float radius) -
spikes
public static void spikes(float x, float y, float radius, float length, int spikes, float rot) -
spikes
public static void spikes(float x, float y, float rad, float length, int spikes) -
quad
public static void quad(float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) -
poly
public static void poly(float x, float y, int sides, float radius, float angle) -
poly
public static void poly(float x, float y, int sides, float radius) -
poly
-
curve
public static void curve(float x1, float y1, float cx1, float cy1, float cx2, float cy2, float x2, float y2, int segments) -
arc
public static void arc(float x, float y, float radius, float fraction) -
arc
public static void arc(float x, float y, float radius, float fraction, float rotation) -
arc
public static void arc(float x, float y, float radius, float fraction, float rotation, int sides) -
square
public static void square(float x, float y, float rad) -
square
public static void square(float x, float y, float rad, float rot) -
rect
public static void rect(float x, float y, float width, float height, float xspace, float yspace) -
rect
public static void rect(float x, float y, float width, float height) -
rect
-
rect
public static void rect(float x, float y, float width, float height, int space) -
stroke
public static void stroke(float thick) -
stroke
-
getStroke
public static float getStroke()
-