setLine

fun setLine(l: Line2D)

Sets the location of the end points of this Line2D to the same as those end points of the specified Line2D.

Since

1.2

Parameters

l

the specified Line2D


fun setLine(p1: Point2D, p2: Point2D)

Sets the location of the end points of this Line2D to the specified Point2D coordinates.

Since

1.2

Parameters

p1

the start Point2D of the line segment

p2

the end Point2D of the line segment


fun setLine(x1: double, y1: double, x2: double, y2: double)

Sets the location of the end points of this Line2D to the specified double coordinates.

Since

1.2

Parameters

x1

the X coordinate of the start point

y1

the Y coordinate of the start point

x2

the X coordinate of the end point

y2

the Y coordinate of the end point