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
Parameter | Type | Description |
---|---|---|
v | Vec2 | 参数“v”是一个“Vec2”对象。 |
Returns:
- 反射得到的点