pimath 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pimath.js +4 -5
- package/dist/pimath.js.map +1 -1
- package/package.json +1 -1
- package/src/geometry/triangle.ts +11 -6
- package/types/geometry/triangle.d.ts.map +1 -1
package/dist/pimath.js
CHANGED
|
@@ -4127,11 +4127,10 @@ class V {
|
|
|
4127
4127
|
return t === "A" ? this.#a(e, i, s) : t === "C" ? this.#a(s, i, e) : this.#a(i, e, s);
|
|
4128
4128
|
}
|
|
4129
4129
|
getBisectors(t = !0) {
|
|
4130
|
-
if (
|
|
4131
|
-
|
|
4132
|
-
|
|
4133
|
-
}
|
|
4134
|
-
return this.#o.bisectors;
|
|
4130
|
+
if (t && this.#o.bisectors) return this.#o.bisectors;
|
|
4131
|
+
if (!t && this.#o.externalBisectors) return this.#o.externalBisectors;
|
|
4132
|
+
const e = this.#h("A", t), i = this.#h("B", t), s = this.#h("C", t), r = e.intersection(i).point;
|
|
4133
|
+
return t ? this.#o.bisectors = { A: e, B: i, C: s, intersection: r } : this.#o.externalBisectors = { A: e, B: i, C: s, intersection: r }, { A: e, B: i, C: s, intersection: r };
|
|
4135
4134
|
}
|
|
4136
4135
|
getHeights() {
|
|
4137
4136
|
if (!this.#o.heights) {
|