Home > @esengine/ecs-framework-monorepo > Vector2 > rotateAround
Vector2.rotateAround() method
围绕一个点旋转
Signature:
typescript
rotateAround(center: Vector2, angle: number): this;
Parameters
Parameter | Type | Description |
---|---|---|
center | 旋转中心点 | |
angle | number | 旋转角度(弧度) |
Returns:
this
当前向量实例(链式调用)