◆
RoateAboutPoint()
static Vector2 RoateAboutPoint
(
this Vector2
pointToRotate
,
Vector2
centerPoint
,
float
angle
)
static
Parameters
pointToRotate
this is the point that will be rotated around the center-point.
centerPoint
The pointToRotate will be rotated in a circle around this point.
angle
Angle to rotate the point, in Radians.
Returns
Returns the 2d position of the rotated point.
EyE
Unity
Extensions
TransformExtensions