Skip to content

Home > @esengine/ecs-framework-monorepo > Vector2 > clampLength

Vector2.clampLength() method

限制向量长度

Signature:

typescript
clampLength(maxLength: number): this;

Parameters

Parameter

Type

Description

maxLength

number

最大长度

Returns:

this

当前向量实例(链式调用)

基于 MIT 许可证发布