toAngle

fun toAngle(length: Float, angle: Float): Line

Define the line parameters with angle & length

Setting the line information will override its width and height

Return

this

Parameters

length

the length of the line in pixels

angle

the angle of the line in degrees