@mathigon/euclid
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -352,4 +352,4 @@ 'use strict'; | ||
equals(other, tolerance) { | ||
if (other.type !== 'line') | ||
return false; | ||
// Note: Checking line types breaks some applications in Mathigon textbooks. | ||
// if (other.type !== 'line') return false; | ||
return this.contains(other.p1, tolerance) && this.contains(other.p2, tolerance); | ||
@@ -356,0 +356,0 @@ } |
@@ -348,4 +348,4 @@ import { mod, nearlyEquals, clamp, roundTo, square, lerp, Random, isBetween, subsets, quadratic } from '@mathigon/fermat'; | ||
equals(other, tolerance) { | ||
if (other.type !== 'line') | ||
return false; | ||
// Note: Checking line types breaks some applications in Mathigon textbooks. | ||
// if (other.type !== 'line') return false; | ||
return this.contains(other.p1, tolerance) && this.contains(other.p2, tolerance); | ||
@@ -352,0 +352,0 @@ } |
{ | ||
"name": "@mathigon/euclid", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "Euclidean geometry classes and tools for JavaScript.", | ||
@@ -30,16 +30,16 @@ "keywords": [ | ||
"dependencies": { | ||
"@mathigon/core": "^0.5.2", | ||
"@mathigon/fermat": "^0.6.0" | ||
"@mathigon/core": "^0.6.0", | ||
"@mathigon/fermat": "^0.6.1" | ||
}, | ||
"devDependencies": { | ||
"@rollup/plugin-typescript": "6.1.0", | ||
"@rollup/plugin-typescript": "8.0.0", | ||
"@types/tape": "4.13.0", | ||
"rollup": "2.33.0", | ||
"rollup": "2.34.0", | ||
"tape": "5.0.1", | ||
"ts-node": "9.0.0", | ||
"tslib": "2.0.3", | ||
"typescript": "4.0.5", | ||
"@typescript-eslint/eslint-plugin": "4.6.0", | ||
"@typescript-eslint/parser": "4.6.0", | ||
"eslint": "7.12.1", | ||
"typescript": "4.1.2", | ||
"@typescript-eslint/eslint-plugin": "4.9.0", | ||
"@typescript-eslint/parser": "4.9.0", | ||
"eslint": "7.14.0", | ||
"eslint-config-google": "0.14.0", | ||
@@ -46,0 +46,0 @@ "eslint-plugin-import": "2.22.1" |
@@ -137,3 +137,4 @@ // ============================================================================= | ||
equals(other: Line, tolerance?: number) { | ||
if (other.type !== 'line') return false; | ||
// Note: Checking line types breaks some applications in Mathigon textbooks. | ||
// if (other.type !== 'line') return false; | ||
return this.contains(other.p1, tolerance) && this.contains(other.p2, tolerance); | ||
@@ -140,0 +141,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
157190
4375
- Removed@mathigon/core@0.5.2(transitive)
Updated@mathigon/core@^0.6.0
Updated@mathigon/fermat@^0.6.1