organizing math module - optimization module

This commit is contained in:
Val Erastov (xibyte) 2020-07-18 22:23:43 -07:00
parent 841ce331a4
commit 1e861642e1
6 changed files with 7 additions and 8 deletions

View file

@ -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;

View file

@ -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) {

View file

@ -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 {

View file

@ -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';

View file

@ -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 {