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

Vect2 velocity = new Vect2( 1, 0 );

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

velocity.rotateRight();

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