Skip to content

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

Vector2.subtract() method

向量减法(静态方法)

Signature:

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

Parameters

Parameter

Type

Description

a

Vector2

向量a

b

Vector2

向量b

Returns:

Vector2

新的结果向量

基于 MIT 许可证发布