mirror of
https://github.com/troisjs/trois.git
synced 2024-11-24 04:12:02 +08:00
modify export
This commit is contained in:
parent
130dcfcefd
commit
6c02d46d42
@ -1,2 +1,4 @@
|
||||
export * from './index'
|
||||
export * from './plugin'
|
||||
|
||||
export { default as useTextures } from './use/useTextures'
|
||||
|
13
src/tools.ts
13
src/tools.ts
@ -43,19 +43,6 @@ export function lerp(value1: number, value2: number, amount: number): number {
|
||||
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 {
|
||||
return val < min ? min : (val > max ? max : val)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user