CK.Plugins.AutoClick.Converters.ValueToPointConverter.Convert C# (CSharp) Method

Convert() public method

public Convert ( object value, Type targetType, object parameter, System culture ) : object
value object
targetType System.Type
parameter object
culture System
return object
        public object Convert( object value, Type targetType, object parameter, System.Globalization.CultureInfo culture )
        {
            double current = (Double.Parse(value.ToString()) / (double)100) * (double)360;

            current = current - 90;

            current = current * 0.017453292519943295;

            double x = 10 + 10 * Math.Cos( current );
            double y = 10 + 10 * Math.Sin( current );

            return new Point( x, y );
        }
ValueToPointConverter