13 lines
363 B
C#
13 lines
363 B
C#
using System;
|
|
using System.Globalization;
|
|
using System.Windows.Data;
|
|
|
|
namespace OperationControl.Converters
|
|
{
|
|
public class NegateAngleConverter : IValueConverter
|
|
{
|
|
public object Convert(object v, Type t, object p, CultureInfo c) => -(double)v;
|
|
public object ConvertBack(object v, Type t, object p, CultureInfo c) => -(double)v;
|
|
}
|
|
}
|