point2line
index
 
Name normalized ( )
Description Returns a copy that has been normalized.
Syntax
normalized();
Returns new normalized copy of the vector (Vect2)
Usage Web & Application
Related normalize ( )
setMagnitude ( )
Examples
import point2line.*;

Vect2 velocity = new Vect2( 10, 10 );

println( velocity.magnitude() ); // prints "14.142136"

Vect2 normalizedVelocity = velocity.normalized();

println( normalizedVelocity.magnitude() ); // prints "1.0"