Skip to content

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

Vector2.reflect() method

反射向量(关于法线)

Signature:

typescript
reflect(normal: Vector2): this;

Parameters

Parameter

Type

Description

normal

Vector2

法线向量(应为单位向量)

Returns:

this

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

基于 MIT 许可证发布