private double computeLoadingsScaleFactor(double[] vector){
  if (vector.length >= 2) {
    final double length=Math.sqrt(Geometry.squaredDistance(0,0,vector[0],vector[1]));
    if (length > 0) {
      final Rectangle2D bbox=graphView.getBBox();
      return 0.2 * Math.min(bbox.getWidth(),bbox.getHeight()) / (length);
    }
  }
  return 1;
}

private double computeLoadingsScaleFactor ( double [ ] vector ) { if ( vector . length >= 2 ) { final double length = Math . sqrt ( Geometry . squaredDistance ( 0 , 0 , vector [ 0 ] , vector [ 1 ] ) ) ; if ( length > 0 ) { final Rectangle2D bbox = graphView . getBBox ( ) ; return 0.2 * Math . min ( bbox . getWidth ( ) , bbox . getHeight ( ) ) / ( length ) ; } } return 1 ; }
compute the scale factor to be used when drawing loadings
