NURBSUtils.d.ts 992 B

123456789101112131415161718
  1. import {
  2. Vector3,
  3. Vector4
  4. } from '../../../src/Three';
  5. export namespace NURBSUtils {
  6. export function findSpan( p: number, u: number, U: number[] ): number;
  7. export function calcBasisFunctions( span: number, u: number, p: number, U: number[] ): number[];
  8. export function calcBSplinePoint( p: number, U: number[], P: Vector4[], u: number ): Vector4;
  9. export function calcBasisFunctionDerivatives( span: number, u: number, p: number, n: number, U: number[] ): number[][];
  10. export function calcBSplineDerivatives( p: number, U: number[], P: Vector4[], u: number, nd: number ): Vector4[];
  11. export function calcKoverI( k: number, i: number ): number;
  12. export function calcRationalCurveDerivatives( Pders: Vector4[] ): Vector3[];
  13. export function calcNURBSDerivatives( p: number, U: number[], P: Vector4[], u: number, nd: number ): Vector3[];
  14. export function calcSurfacePoint( p: number, q: number, U: number[], V: number[], P: Vector4[], u: number, v: number, target: Vector3 ): Vector3;
  15. }