◆ RoateAboutPoint()

static Vector2 RoateAboutPoint ( this Vector2  pointToRotate,
Vector2  centerPoint,
float  angle 
)
static
Parameters
pointToRotatethis is the point that will be rotated around the center-point.
centerPointThe pointToRotate will be rotated in a circle around this point.
angleAngle to rotate the point, in Radians.
Returns
Returns the 2d position of the rotated point.