public static float length(float x,float y,float z){
  return (float)Math.sqrt(x * x + y * y + z * z);
}

public static float length ( float x , float y , float z ) { return ( float ) Math . sqrt ( x * x + y * y + z * z ) ; }
computes the length of a vector .
