File size: 439 Bytes
2b7aae2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { Curve } from './Curve';
import { Vector } from './../../math/Vector2';

export class CurvePath<T extends Vector> extends Curve<T> {
	constructor();

	/**
	 * @default 'CurvePath'
	 */
	type: string;

	/**
	 * @default []
	 */
	curves: Array<Curve<T>>;

	/**
	 * @default false
	 */
	autoClose: boolean;

	add(curve: Curve<T>): void;
	closePath(): void;
	getPoint(t: number, optionalTarget?: T): T;
	getCurveLengths(): number[];
}