Constructor
new LineSegment(point1, point2)
Parameters:
| Name | Type | Description |
|---|---|---|
point1 |
Point | the first end point of the line segment |
point2 |
Point | the second send point of the line segment |
Members
angle
the angle made by the line segment with the horizontal
dx
the horizontal run of the line segment
dy
the vertical rise of the line segment
length
the length of the line segment
midpoint
the mid-point of the line segment
slope
the slope of the line segment, as in rise over run, i.e. dy/dx