import { Rectangle, Point } from "./interfaces"; /** * Get the coordinates of all the corners of a rectangle from its top point. * * @param {object} A rectangle defined by two points (x1, y1) and (x2, y2). * @return {array} An array of the four corners' coordinates (x, y). */ export default function rectangleCorners(r: Rectangle): [Point, Point, Point, Point];