mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-09 01:44:19 +01:00
34 lines
471 B
JavaScript
34 lines
471 B
JavaScript
|
|
export class Curve {
|
|
|
|
constructor() {
|
|
}
|
|
|
|
intersectCurve(curve) {
|
|
throw 'not implemented';
|
|
}
|
|
|
|
parametricEquation(t) {
|
|
throw 'not implemented';
|
|
}
|
|
|
|
translate(vector) {
|
|
throw 'not implemented';
|
|
}
|
|
}
|
|
|
|
|
|
export class CompositeCurve {
|
|
|
|
constructor() {
|
|
this.curves = [];
|
|
this.points = [];
|
|
this.groups = [];
|
|
}
|
|
|
|
add(curve, point, group) {
|
|
this.curves.push(curve);
|
|
this.points.push(point);
|
|
this.groups.push(group);
|
|
}
|
|
}
|