UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

36 lines (35 loc) 1.59 kB
import type { FloatArray, Nullable, IndicesArray } from "../types.js"; import type { Vector2 } from "./math.vector.js"; import { Vector3 } from "./math.vector.js"; /** * Extracts minimum and maximum values from a list of indexed positions * @param positions defines the positions to use * @param indices defines the indices to the positions * @param indexStart defines the start index * @param indexCount defines the end index * @param bias defines bias value to add to the result * @returns minimum and maximum values */ export declare function extractMinAndMaxIndexed(positions: FloatArray, indices: IndicesArray, indexStart: number, indexCount: number, bias?: Nullable<Vector2>): { minimum: Vector3; maximum: Vector3; }; /** * Extracts minimum and maximum values from a list of positions * @param positions defines the positions to use * @param start defines the start index in the positions array * @param count defines the number of positions to handle * @param bias defines bias value to add to the result * @param stride defines the stride size to use (distance between two positions in the positions array) * @returns minimum and maximum values */ export declare function extractMinAndMax(positions: FloatArray, start: number, count: number, bias?: Nullable<Vector2>, stride?: number): { minimum: Vector3; maximum: Vector3; }; /** * Flip flipped faces * @param positions defines the positions to use * @param indices defines the indices to use and update */ export declare function FixFlippedFaces(positions: FloatArray, indices: IndicesArray): void;