mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-16 05:23:19 +01:00
organizing math module - optimization module
This commit is contained in:
parent
841ce331a4
commit
1e861642e1
6 changed files with 7 additions and 8 deletions
|
|
@ -1,5 +1,5 @@
|
|||
import numeric from 'numeric';
|
||||
import {_vec, _matrix} from '../../../modules/math/commons'
|
||||
import {_vec, _matrix} from 'math/commons'
|
||||
|
||||
const SUCCESS = 1, ITER_LIMIT = 2, SMALL_DELTA = 3, SMALL_STEP = 4, DIVERGENCE = 5, INVALID_STATE = 6;
|
||||
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
import * as vec from "math/vec";
|
||||
import {TOLERANCE, TOLERANCE_SQ} from '../../tolerance';
|
||||
import * as math from '../../../../../../modules/math/commons'
|
||||
import {fmin_bfgs} from "../../../../math/optim";
|
||||
import * as math from 'math/commons'
|
||||
import {fmin_bfgs} from "math/optim/optim";
|
||||
|
||||
export default function curveIntersect(curve1, curve2, isecRange1, isecRange2, tesselator) {
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import * as vec from "math/vec";
|
||||
import * as math from 'math/commons'
|
||||
import {eqEps, TOLERANCE, TOLERANCE_01, TOLERANCE_SQ} from '../tolerance';
|
||||
import {fmin_bfgs} from "../../../math/optim";
|
||||
import {fmin_bfgs} from "math/optim/optim";
|
||||
import {Vec3} from "math/l3space";
|
||||
|
||||
export interface NurbsCurveData {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
import * as utils from '../../utils/utils'
|
||||
import QR from '../../math/qr'
|
||||
import LMOptimizer from '../../math/lm'
|
||||
import LMOptimizer from 'math/optim/lm'
|
||||
import {ConstantWrapper, EqualsTo} from './solverConstraints'
|
||||
import {dog_leg} from '../../math/optim'
|
||||
import {dog_leg} from 'math/optim/optim'
|
||||
import {newVector} from 'math/vec';
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
import {Tool} from './tool'
|
||||
import {optim} from '../../math/optim'
|
||||
import * as math from '../../../../modules/math/commons'
|
||||
import * as math from 'math/commons'
|
||||
import {toast} from "react-toastify";
|
||||
|
||||
export class DragTool extends Tool {
|
||||
|
|
|
|||
Loading…
Reference in a new issue