localY() 공개 메소드

public localY ( double y ) : double
y double
리턴 double
예제 #1
0
        private void SetValue_Click(object sender, RoutedEventArgs e)
        {
            string res    = Microsoft.VisualBasic.Interaction.InputBox($"Enter new value", "Set Value", point.Value.OutVal.ToString());
            float  result = 0;

            if (float.TryParse(res, out result))
            {
                Y = graph.localY(result);
                graph.Paint(true);
            }
        }
예제 #2
0
        public Anchor(CurveGraph g, LinkedListNode <CurvePoint> p)
        {
            graph             = g;
            point             = p;
            X                 = graph.localX(point.Value.InVal);
            Y                 = graph.localY(point.Value.OutVal);
            this.DragDelta   += OnDragDelta;
            this.DragStarted += OnDragStarted;
            this.MouseDown   += Anchor_MouseDown;

            leftHandle = new Handle(this, true);
            graph.graph.Children.Add(leftHandle);
            rightHandle = new Handle(this, false);
            graph.graph.Children.Add(rightHandle);

            leftBez  = null;
            rightBez = null;
        }
예제 #3
0
        public Anchor(CurveGraph g, LinkedListNode<CurvePoint> p)
        {
            graph = g;
            point = p;
            X = graph.localX(point.Value.InVal);
            Y = graph.localY(point.Value.OutVal);
            this.DragDelta += OnDragDelta;
            this.DragStarted += OnDragStarted;
            this.MouseDown += Anchor_MouseDown;

            leftHandle = new Handle(this, true);
            graph.graph.Children.Add(leftHandle);
            rightHandle = new Handle(this, false);
            graph.graph.Children.Add(rightHandle);

            leftBez = null;
            rightBez = null;
        }