1
0
mirror of https://github.com/troisjs/trois.git synced 2024-11-24 04:12:02 +08:00

modify export

This commit is contained in:
Kevin Levron 2021-04-24 22:47:18 +02:00
parent 130dcfcefd
commit 6c02d46d42
2 changed files with 2 additions and 13 deletions

View File

@ -1,2 +1,4 @@
export * from './index' export * from './index'
export * from './plugin' export * from './plugin'
export { default as useTextures } from './use/useTextures'

View File

@ -43,19 +43,6 @@ export function lerp(value1: number, value2: number, amount: number): number {
return value1 + (value2 - value1) * amount return value1 + (value2 - value1) * amount
} }
// TODO : remove
export function lerpv2(v1: Vector2, v2: Vector2, amount: number): void {
v1.x = lerp(v1.x, v2.x, amount)
v1.y = lerp(v1.y, v2.y, amount)
}
// TODO : remove
export function lerpv3(v1: Vector3, v2: Vector3, amount: number): void {
v1.x = lerp(v1.x, v2.x, amount)
v1.y = lerp(v1.y, v2.y, amount)
v1.z = lerp(v1.z, v2.z, amount)
}
export function limit(val: number, min: number, max: number): number { export function limit(val: number, min: number, max: number): number {
return val < min ? min : (val > max ? max : val) return val < min ? min : (val > max ? max : val)
} }