point2line
index
 
Name rotatedAround ( )
Description Returns a copy of the position that is rotated clockwise around another position by a delta angle (turning left from the vectors forward direction).
Syntax
rotatedAround(vector, deltaAngle);
Parameters
vector   to rotate around (Vect2)
deltaAngle   in radians (float)
Returns None
Usage Web & Application
Related rotateAround ( )
rotated ( )
setRotation ( )
Examples
import point2line.Vect2;

Vect2 position1 = new Vect2( 50, 50 );
Vect2 position2 = new Vect2( 200, 200 );

// rotate position2 90 degrees around position1 //
Vect2 rotated = position2.rotatedAround( position1, radians( 90 ) );