ohzi-core 11.0.1 → 11.0.2
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/package.json
CHANGED
package/src/utilities/OMath.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { Vector3 } from 'three';
|
|
2
|
-
|
|
3
1
|
class OMath
|
|
4
2
|
{
|
|
5
3
|
constructor()
|
|
@@ -48,7 +46,9 @@ class OMath
|
|
|
48
46
|
|
|
49
47
|
static project_points_on_plane(points, plane)
|
|
50
48
|
{
|
|
51
|
-
const projected_point =
|
|
49
|
+
const projected_point = points[0].clone();
|
|
50
|
+
projected_point.set(0, 0, 0);
|
|
51
|
+
|
|
52
52
|
const points_on_plane = [];
|
|
53
53
|
for (let i = 0; i < points.length; i++)
|
|
54
54
|
{
|