You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
574 B

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. import type { Point } from '../types/geometric.js';
  2. import type { SplinePoint } from './helpers.curve.js';
  3. /**
  4. * @private
  5. */
  6. export declare function _pointInLine(p1: Point, p2: Point, t: number, mode?: any): {
  7. x: number;
  8. y: number;
  9. };
  10. /**
  11. * @private
  12. */
  13. export declare function _steppedInterpolation(p1: Point, p2: Point, t: number, mode: 'middle' | 'after' | unknown): {
  14. x: number;
  15. y: number;
  16. };
  17. /**
  18. * @private
  19. */
  20. export declare function _bezierInterpolation(p1: SplinePoint, p2: SplinePoint, t: number, mode?: any): {
  21. x: number;
  22. y: number;
  23. };