Skip to content
On this page

Home > @taiyuuki/utils > Vec2 > reflect

Vec2.reflect() method

This API is provided as a beta preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

计算这个向量在另一个向量方向上的反射(投影)

Signature:

typescript
reflect(v: Vec2): Vec2;
reflect(v: Vec2): Vec2;

Parameters

ParameterTypeDescription
vVec2参数“v”是一个“Vec2”对象。

Returns:

Vec2

  • 反射得到的点

Released under the MIT License.