@immugio/three-math-extensions 0.0.2 → 0.0.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/cjs/Line3D.js +2 -1
- package/package.json +1 -1
- package/src/Line3D.ts +2 -1
package/cjs/Line3D.js
CHANGED
|
@@ -5,9 +5,10 @@ const three_1 = require("three");
|
|
|
5
5
|
const Vec3_1 = require("./Vec3");
|
|
6
6
|
const Line2D_1 = require("./Line2D");
|
|
7
7
|
class Line3D extends three_1.Line3 {
|
|
8
|
-
#target
|
|
8
|
+
#target;
|
|
9
9
|
constructor(start, end) {
|
|
10
10
|
super(start, end);
|
|
11
|
+
this.#target = new Vec3_1.Vec3();
|
|
11
12
|
}
|
|
12
13
|
static fromPoints(start, end) {
|
|
13
14
|
return new Line3D(new Vec3_1.Vec3(start.x, start.y, start.z), new Vec3_1.Vec3(end.x, end.y, end.z));
|
package/package.json
CHANGED
package/src/Line3D.ts
CHANGED
|
@@ -8,10 +8,11 @@ export class Line3D extends Line3 {
|
|
|
8
8
|
public declare start: Vec3;
|
|
9
9
|
public declare end: Vec3;
|
|
10
10
|
|
|
11
|
-
#target
|
|
11
|
+
readonly #target: Vec3;
|
|
12
12
|
|
|
13
13
|
constructor(start: Vec3, end: Vec3) {
|
|
14
14
|
super(start, end);
|
|
15
|
+
this.#target = new Vec3();
|
|
15
16
|
}
|
|
16
17
|
|
|
17
18
|
public static fromPoints(start: Point3, end: Point3): Line3D {
|