public Vector2f rotate ( float x , float y ) { final float length = length ( ) ; if ( Math . abs ( length ) < GenericMath . FLT_EPSILON ) { throw new ArithmeticException ( "Cannot rotate by the zero complex" ) ; } final float nx = this . x / length ; final float ny = this . y / length ; return new Vector2f ( x * nx - y * ny , y * nx + x * ny ) ; }
Rotates the float components of a vector by this complex .