public static Complex fromAngle(float angle){
  return new Complex((float)Math.cos(angle),(float)Math.sin(angle));
}

public static Complex fromAngle ( float angle ) { return new Complex ( ( float ) Math . cos ( angle ) , ( float ) Math . sin ( angle ) ) ; }
creates a new complex sample representing the angle with unit circle magnitude
