Sha256: 0bd41243221dc2b6e3c6b2ad6531d2e99d57f8b697f701d90f9bcc51eaf242ea
Contents?: true
Size: 228 Bytes
Versions: 20
Compression:
Stored size: 228 Bytes
Contents
import { Point, pow, sqrt } from "math"; function Segment(start, end) { this.start = start; this.end = end; this.distance = sqrt( pow(start.x - end.x, 2) + pow(start.y - end.y, 2) ); } export default Segment;
Version data entries
20 entries across 10 versions & 1 rubygems