point2line
index
 
Name rotated ( )
Description Returns a copy that is rotated clockwise from the vector by a specified angle (turning left from the vectors forward direction).
Syntax
rotated(deltaAngle);
Parameters
angle   in radians (float)
Returns a copy that has been rotated (Vect2)
Usage Web & Application
Related rotate ( )
setRotation ( )
Examples
import point2line.*;

Vect2 velocity = new Vect2( 0, 1 );

println( degrees( velocity.angle() ) );  // prints "90.0"

Vect2 rotatedVelocity = velocity.rotated( radians( 90 ) );

println( degrees( rotatedVelocity.angle() ) );  // prints "180.0"