public override bool MouseMove(MouseEventArgs e) { if (Step == 1) { RotateALL(baseX, baseY, (float)(-angle)); var dx = Primitive.ResultX - baseX; var dy = Primitive.ResultY - baseY; angle = Azimuth.Create(dx, dy); RotateALL(baseX, baseY, (float)angle); return(true); } return(false); }
private void SetPrimitiveData(double x, double y) { if (Step == 0) { baseX = x; baseY = y; Step++; } else { RotateALL(baseX, baseY, (float)(-angle)); var dx = x - baseX; var dy = y - baseY; angle = Azimuth.Create(dx, dy); RotateALL(baseX, baseY, (float)angle); Stop(); } }
private void SetPrimitiveData(double x, double y) { if (Step == 0) { if (Primitive.CurrentSelectedPrimitives.Count < 1) { if (Select()) { Step++; } } baseX = Primitive.ResultX; baseY = Primitive.ResultY; } else { RotateAt(baseX, baseY, (float)(-angle)); var dx = x - baseX; var dy = y - baseY; angle = Azimuth.Create(dx, dy); RotateAt(baseX, baseY, (float)angle); Stop(); } }