point2line
index
 
Name rotatedLeft ( )
Description Returns a copy that has been rotated 90 degrees counter clockwise from the vector's forward angle. The magnitude is unchanged. This function is much faster than rotate() or setRotation().
Syntax
rotatedLeft();
Returns a copy that has been rotated 90 degrees counter clockwise (Vect2)
Usage Web & Application
Related rotatedRight ( )
rotateLeft ( )
rotateRight ( )
rotated ( )
rotate ( )
setRotation ( )
Examples
import point2line.*;

Vect2 velocity = new Vect2( 1, 0 );

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

Vect2 leftVelocity = velocity.rotatedLeft();

println( degrees( leftVelocity.angle() ) );  // prints "270.0"