UNPKG

@visx/point

Version:
7 lines 164 B
import Point from './Point'; export default function sumPoints(point1, point2) { return new Point({ x: point1.x + point2.x, y: point1.y + point2.y }); }