@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
13 lines (12 loc) • 1.21 kB
TypeScript
import { Vector3 } from 'three';
import { BaseCorePoint } from '../geometry/entities/point/CorePoint';
export declare class CoreInterpolate {
static perform(point_dest: BaseCorePoint, points_src: BaseCorePoint[], attrib_name: string, distance_threshold: number, blend_with: number): number;
static _interpolate_with_1_point(point_dest: BaseCorePoint, point_src: BaseCorePoint, attrib_name: string, distance_threshold: number, blend_with: number): number;
static _weight_from_distance(distance: number, distance_threshold: number, blend_with: number): number;
static _weighted_value_from_distance(point_dest: BaseCorePoint, value_src: number, attrib_name: string, distance: number, distance_threshold: number, blend_with: number): number;
static _interpolate_with_multiple_points(point_dest: BaseCorePoint, points_src: BaseCorePoint[], attrib_name: string, distance_threshold: number, blend_with: number): number;
static weights(current_position: Vector3, other_positions: Vector3[]): 1 | number[];
static _weights_from_2(current_position: Vector3, other_positions: Vector3[]): number[];
static _weights_from_3(current_position: Vector3, other_positions: Vector3[]): number[];
}