Skip to content

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

Vector2.add() method

向量加法(静态方法)

Signature:

typescript
static add(a: Vector2, b: Vector2): Vector2;

Parameters

Parameter

Type

Description

a

Vector2

向量a

b

Vector2

向量b

Returns:

Vector2

新的结果向量

基于 MIT 许可证发布