lymimt

Results 2 issues of lymimt

在此前 https://github.com/ng-docs/ng-docs.github.io/issues/150 中,因为无法直接引用 Sylvester,现在我改为参考其源代码自行实现。目前遇到一个问题: 三维基本元素包括:vector、line、line-segment、plane,在进行三维运算时,不可避免地会涉及到相互引用。 目前的实现运行正常,但是在 `> ng serve` 是会有多个循环依赖警告: ``` WARNING in Circular dependency detected: src\app\core\services\geo3d\line.ts -> src\app\core\services\geo3d\vector.ts -> src\app\core\services\geo3d\line.ts WARNING in Circular dependency detected: src\app\core\services\geo3d\plane.ts -> src\app\core\services\geo3d\vector.ts ->...

我需要使用 Sylvester 库来进行一些三维几何运算,但是该库的结构跟我之前常用的其他库有些区别。相关项目 [sylvester](https://github.com/jcoglan/sylvester) 很久没维护了,在网上也没有找到有用的示例。 我的操作步骤: 1. 引用 `sylvester` 及 `@types/sylvester` ``` > npm i sylvester > npm i @types/sylvester ``` 2. 在代码中进行一些计算 ```ts const lineAB = Line.create( [pointA.x, pointA.y,...