simple-geometry
Advanced tools
+4
-4
| { | ||
| "name": "simple-geometry", | ||
| "version": "1.0.15", | ||
| "version": "1.0.16", | ||
| "description": "Simple geometry", | ||
| "main": "dist/points.js", | ||
| "main": "dist/points.js", | ||
| "exports": { | ||
| ".": { | ||
| "require": "./dist/points.js", | ||
| "import": "./dist/points.js" | ||
| "import": "./dist/points.js" | ||
| }, | ||
| "./pathPoints": { | ||
| "./pathPoints": { | ||
| "require": "./dist/pathPoints.js", | ||
@@ -13,0 +13,0 @@ "import": "./dist/pathPoints.js", |
+1
-2
| import { centroidRect, controlPoints, gGetRect } from "./rectInPolygon"; | ||
| export class Point { | ||
@@ -39,3 +38,3 @@ public constructor(public x: number = 0, public y: number = 0) {} | ||
| public get center(): Point { | ||
| return { x: this.x + this.width / 2, y: this.y + this.height / 2 }; | ||
| return lineCenter(this.p0, this.p2); | ||
| } | ||
@@ -42,0 +41,0 @@ public get square(): number { |
102556
-0.06%