point2line
index
 
Name isZero ( )
Description Returns a boolean that is true if the vector is zero. In other words, it returns ( x==0 && y==0 ).
Syntax
isZero();
Returns true if vector is zero (boolean)
Usage Web & Application
Related isAlmostZero ( )
Examples
import point2line.*;

Vect2 test1 = new Vect2( 1, 0 );
Vect2 test2 = new Vect2( 0, 0 );

println( test1.isZero() ); // prints "false"
println( test2.isZero() ); // prints "true"