math.functions.d.ts 1.3 KB

1234567891011121314151617181920212223242526272829
  1. import type { FloatArray, Nullable, IndicesArray } from "../types";
  2. import type { Vector2 } from "./math.vector";
  3. import { Vector3 } from "./math.vector";
  4. /**
  5. * Extracts minimum and maximum values from a list of indexed positions
  6. * @param positions defines the positions to use
  7. * @param indices defines the indices to the positions
  8. * @param indexStart defines the start index
  9. * @param indexCount defines the end index
  10. * @param bias defines bias value to add to the result
  11. * @returns minimum and maximum values
  12. */
  13. export declare function extractMinAndMaxIndexed(positions: FloatArray, indices: IndicesArray, indexStart: number, indexCount: number, bias?: Nullable<Vector2>): {
  14. minimum: Vector3;
  15. maximum: Vector3;
  16. };
  17. /**
  18. * Extracts minimum and maximum values from a list of positions
  19. * @param positions defines the positions to use
  20. * @param start defines the start index in the positions array
  21. * @param count defines the number of positions to handle
  22. * @param bias defines bias value to add to the result
  23. * @param stride defines the stride size to use (distance between two positions in the positions array)
  24. * @returns minimum and maximum values
  25. */
  26. export declare function extractMinAndMax(positions: FloatArray, start: number, count: number, bias?: Nullable<Vector2>, stride?: number): {
  27. minimum: Vector3;
  28. maximum: Vector3;
  29. };