You should implement the Task.findMiddlePoint()
method which takes a Segment segment
argument. This object
represents a segment on the coordinate plane. It has two fields (beginning
and end
) that represents coordinates
of the segment's edges. Each coordinate is represented by an object of the Point
class. These objects contain x
and
y
fields with appropriate coordinates. The method should calculate the point which lays in the very middle of the
input segment and return it as a Point
object. You should the formula for calculation by yourself.
task9
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||