arc

fun ShapeRenderer.arc(position: Vector2, radius: Float, start: Float, degrees: Float)

See ShapeRenderer.arc. Estimates the number of segments needed for a smooth arc.

Parameters

position

supplies x and y parameters.

radius

radius of the rendered arc.

start

start of the rendered arc.

degrees

angle of the rendered arc in degrees.


fun ShapeRenderer.arc(position: Vector2, radius: Float, start: Float, degrees: Float, segments: Int)

See ShapeRenderer.arc.

Parameters

position

supplies x and y parameters.

radius

radius of the rendered arc.

start

start of the rendered arc.

degrees

angle of the rendered arc in degrees.

segments

amount of segments used to render the arc.