point2line
index
 
Name rotateLeft ( )
Description Rotates the vector 90 degrees left. The magnitude is left unchanged. This function is much faster than rotate() or setRotation().
Syntax
rotateLeft();
Returns None
Usage Web & Application
Related rotateRight ( )
rotatedLeft ( )
rotatedRight ( )
rotated ( )
rotate ( )
setRotation ( )
Examples
import point2line.*;

Vect2 velocity = new Vect2( 1, 0 );

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

velocity.rotateLeft();

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