Set value
to be an object with properties point1
, point2
, and point3
. Make each pointZ property an object with properties named x and y and that have the value given by the corresponding function argument. For example, the point1 property will have properties named x and y with values x1 and y1.