mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-06 16:33:15 +01:00
19 lines
No EOL
359 B
JavaScript
19 lines
No EOL
359 B
JavaScript
import {closestToCurveParam} from './closestPoint';
|
|
import InvertedCurve from './invertedCurve';
|
|
import BoundedCurve from './boundedCurve';
|
|
|
|
export default class BasicCurve {
|
|
|
|
param(pt) {
|
|
return closestToCurveParam(this, pt);
|
|
}
|
|
|
|
invert() {
|
|
return new InvertedCurve(this);
|
|
}
|
|
|
|
split(u) {
|
|
return BoundedCurve.splitCurve(this, u);
|
|
}
|
|
|
|
} |