354 references to Abs
mscorlib (10)
system\globalization\CalendricalCalculationsHelper.cs (1)
267return CopySign(Math.Min(Math.Abs(equation), TwelveHours), equation);
system\math.cs (9)
87if (Abs(value) < doubleRoundLimit) { 92if (Abs(fraction) >= 0.5d) { 224alternativeResult = regularMod - (Math.Abs(y) * Math.Sign(x)); 225if (Math.Abs(alternativeResult) == Math.Abs(regularMod)) { 228if (Math.Abs(roundedResult) > Math.Abs(divisionResult)) { 235if (Math.Abs(alternativeResult) < Math.Abs(regularMod)) {
PresentationCore (76)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (6)
401return Math.Abs(to - from); 438return Math.Abs((to - from).Length); 443return Math.Abs((to - from).Length); 478return Math.Abs(((System.Windows.Vector)to - (System.Windows.Vector)from).Length); 495return Math.Abs((to - from).Length); 500return Math.Abs((to - from).Length);
Core\CSharp\MS\Internal\Ink\Bezier.cs (4)
389bool accept = (Math.Abs(det) > Math.Abs(s) * DoubleUtil.DBL_EPSILON && 390Math.Abs(det) > Math.Abs(u) * DoubleUtil.DBL_EPSILON);
Core\CSharp\MS\Internal\Ink\CuspData.cs (2)
503_dist = Math.Abs(rR) + Math.Abs(rB);
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (4)
625radius = Math.Abs(nearest.Y); 629radius = Math.Abs(nearest.X); 762findex = Math.Abs(Math.Min(s1, s2) - 0d) < Math.Abs(Math.Max(s1, s2) - 1d) ? 0d : 1d;
Core\CSharp\MS\Internal\Ink\Lasso.cs (2)
523return (Math.Abs(vector.X) < MinDistance && Math.Abs(vector.Y) < MinDistance);
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (2)
752double r = (Math.Abs(nextNode.X) < Math.Abs(nextNode.Y)) //DoubleUtil.IsZero(nextNode.X)
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (5)
95double delta = Math.Abs(GetAngleDeltaFromLast(strokeNode.PreviousPosition, strokeNode.Position, ref lastAngle)); 528bool directionChangedOverAbsoluteThreshold = Math.Abs(delta) > 90d && Math.Abs(delta) < (360d - 90d); 529bool directionChangedOverOverlapThreshold = overlap && !(ignorePressure || strokeNode.PressureFactor == 1f) && Math.Abs(delta) > 30d && Math.Abs(delta) < (360d - 30d);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (2)
619if (Math.Abs(visUV1.X - visUV2.X) > Math.Abs(visUV1.Y - visUV2.Y))
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (2)
1362penThickness = Math.Abs(penThickness); 1438drawingPenThickness = drawingPenThickness / Math.Abs(unitValue);
Core\CSharp\System\Windows\Input\MouseDevice.cs (2)
2274return (Math.Abs(newPosition.X - _lastClick.X) < doubleClickDeltaX) && 2275(Math.Abs(newPosition.Y - _lastClick.Y) < doubleClickDeltaY);
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
2163timeUntilNextBoundary = DivideTimeSpan(_currentDuration.TimeSpan, Math.Abs(parentSpeed));
Core\CSharp\System\Windows\Media\Animation\KeySpline.cs (2)
364absdx = Math.Abs(dx); 379if (Math.Abs(x - time) < accuracy * absdx)
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (13)
106currentCenter.X - Math.Abs(currentRadiusX), 107currentCenter.Y - Math.Abs(currentRadiusY), 1082.0 * Math.Abs(currentRadiusX), 1092.0 * Math.Abs(currentRadiusY)); 181strokeThickness = Math.Abs(pen.Thickness); 185center.X - Math.Abs(radiusX)-0.5*strokeThickness, 186center.Y - Math.Abs(radiusY)-0.5*strokeThickness, 1872.0 * Math.Abs(radiusX)+strokeThickness, 1882.0 * Math.Abs(radiusY)+strokeThickness); 271double area = Math.Abs(RadiusX * RadiusY) * Math.PI; 277area *= Math.Abs(transform.Value.Determinant); 390radiusX = Math.Abs(radiusX); 391radiusY = Math.Abs(radiusY);
Core\CSharp\System\Windows\Media\GlyphRun.cs (1)
1786_baseVectorY = _baseVectorX == 0 ? 0 : Math.Abs(m11 * m22 - m12 * m21) / _baseVectorX;
Core\CSharp\System\Windows\Media\Imaging\TransformedBitmap.cs (4)
147scaleX = Math.Abs(m.M11); 148scaleY = Math.Abs(m.M22); 166scaleX = Math.Abs(m.M12); 167scaleY = Math.Abs(m.M21);
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (6)
215strokeThickness = Math.Abs(pen.Thickness); 314double area = Math.Abs(rect.Width * rect.Height); 317area -= Math.Abs(radiusX * radiusY) * (4.0 - Math.PI); 323area *= Math.Abs(transform.Value.Determinant); 502radiusX = Math.Min(rect.Width * (1.0 / 2.0), Math.Abs(radiusX)); 503radiusY = Math.Min(rect.Height * (1.0 / 2.0), Math.Abs(radiusY));
Core\CSharp\System\Windows\Media3D\OrthographicCamera.cs (1)
232return x + 0.1*Math.Abs(x) + 1.0;
Core\CSharp\System\Windows\Media3D\Quaternion.cs (11)
175double maxcoeff = Math.Max(Math.Abs(_x),Math.Max(Math.Abs(_y),Math.Abs(_z))); 265double rmax = 1.0/Max(Math.Abs(_x), 266Math.Abs(_y), 267Math.Abs(_z), 268Math.Abs(_w)); 451double max = Math.Max(Math.Max(Math.Abs(_x),Math.Abs(_y)), 452Math.Max(Math.Abs(_z),Math.Abs(_w)));
Core\CSharp\System\Windows\Media3D\Vector3D.cs (6)
94double m = Math.Abs(_x); 95double absy = Math.Abs(_y); 96double absz = Math.Abs(_z); 473return new Size3D(Math.Abs(vector._x), Math.Abs(vector._y), Math.Abs(vector._z));
PresentationFramework (85)
src\Framework\MS\Internal\AnimatedTypeHelpers.cs (1)
81return Math.Abs(to - from);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (4)
1073if (DoubleUtil.GreaterThan(Math.Abs(offsetX), Math.Abs(_offsetX))) 1085if (DoubleUtil.GreaterThan(Math.Abs(offsetY), Math.Abs(_offsetY)))
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
2298double aspectDiff = Math.Abs(layoutAspect - viewportAspect);
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (2)
139if (Math.Abs(_scrollData.ExtentWidth - _scrollData.ViewportWidth) < 1) 143if (Math.Abs(_scrollData.ExtentHeight - _scrollData.ViewportHeight) < 1)
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (4)
1105horz = Math.Min(Math.Abs(point.X - textViewBounds.Left), Math.Abs(point.X - textViewBounds.Right)); 1113vert = Math.Min(Math.Abs(point.Y - textViewBounds.Top), Math.Abs(point.Y - textViewBounds.Bottom));
src\Framework\MS\Internal\Documents\TextDocumentView.cs (2)
2115double distance = Math.Abs(point.X - midPoint.X) + Math.Abs(point.Y - midPoint.Y);
src\Framework\System\Windows\Controls\DataGrid.cs (2)
6592distance = Math.Abs(pt.Y - cellBounds.Top); 6600distance = Math.Abs(pt.X - cellBounds.Left);
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (1)
1345TakeAwayWidthFromColumns(null, Math.Abs(availableSpaceChange), false, newTotalAvailableSpace);
src\Framework\System\Windows\Controls\Grid.cs (2)
3284return (Math.Abs(d) < c_epsilon); 3295return (Math.Abs(d1 - d2) < c_epsilon);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1250return (DoubleUtil.GreaterThan(Math.Abs(currentPos.X - originalPos.X), c_thresholdX));
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
649return DoubleUtil.GreaterThan(Math.Abs(currentPos.X - originalPos.X), SystemParameters.MinimumHorizontalDragDistance);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (11)
2114if (Math.Abs(score - childArea) < Tolerance) 2140if (Math.Abs(intersection.Width - childBounds.Width) > Tolerance || 2141Math.Abs(intersection.Height - childBounds.Height) > Tolerance) 2156if (!IsTransparent || double.IsNaN(horizontalAxis.Y) || Math.Abs(horizontalAxis.Y) < Tolerance) 2168else if (IsTransparent && Math.Abs(horizontalAxis.X) < Tolerance) 2191if (!IsTransparent || double.IsNaN(verticalAxis.X) || Math.Abs(verticalAxis.X) < Tolerance) 2202else if (IsTransparent && Math.Abs(verticalAxis.Y) < Tolerance) 2257if (!IsTransparent || double.IsNaN(verticalAxis.X) || Math.Abs(verticalAxis.X) < Tolerance) 2261else if (IsTransparent && Math.Abs(verticalAxis.Y) < Tolerance) 2279if (!IsTransparent || double.IsNaN(horizontalAxis.X) || Math.Abs(horizontalAxis.Y) < Tolerance) 2283else if (IsTransparent && Math.Abs(horizontalAxis.X) < Tolerance)
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (2)
223restrictWidth = Math.Abs(restrictedSize.Width - desiredSize.Width) > Popup.Tolerance; 224restrictHeight = Math.Abs(restrictedSize.Height - desiredSize.Height) > Popup.Tolerance;
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (2)
354perpendicularDragDelta = Math.Abs(verticalDragDelta); 358perpendicularDragDelta = Math.Abs(horizontalDragDelta);
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (4)
536Point pt2 = new Point(startPoint.X + tickLen2, y0 + Math.Abs(tickLen2) * progression); 549pt2 = new Point(startPoint.X + tickLen2, y0 - Math.Abs(tickLen2) * progression); 641Point pt2 = new Point(x0 + Math.Abs(tickLen2) * progression, startPoint.Y + tickLen2); 654pt2 = new Point(x0 - Math.Abs(tickLen2) * progression, startPoint.Y + tickLen2);
src\Framework\System\Windows\Controls\ScrollViewer.cs (10)
1803DoubleUtil.LessThan(Math.Abs(unusedX), PanningInfo.PreFeedbackTranslationX)) 1811DoubleUtil.LessThan(Math.Abs(unusedY), PanningInfo.PreFeedbackTranslationY)) 1904return (DoubleUtil.GreaterThanOrClose(Math.Abs(_panningInfo.UnusedTranslation.X), PanningInfo.MaxInertiaBoundaryTranslation) || 1905DoubleUtil.GreaterThanOrClose(Math.Abs(_panningInfo.UnusedTranslation.Y), PanningInfo.MaxInertiaBoundaryTranslation)); 1924bool validX = (DoubleUtil.GreaterThan(Math.Abs(translation.X), PanningInfo.PrePanTranslation)); 1925bool validY = (DoubleUtil.GreaterThan(Math.Abs(translation.Y), PanningInfo.PrePanTranslation)); 1935bool biggerX = (DoubleUtil.GreaterThanOrClose(Math.Abs(translation.X), Math.Abs(translation.Y))); 1948bool biggerY = (DoubleUtil.GreaterThanOrClose(Math.Abs(translation.Y), Math.Abs(translation.X)));
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (10)
515double delta = Math.Abs(scrollX - oldViewportOffset.X); 641double delta = Math.Abs(scrollY - oldViewportOffset.Y); 4670pixelSizeBeforeViewport = Math.Max(pixelSizeBeforeViewport, Math.Abs(_viewport.X - _extendedViewport.X)); 4674logicalSizeBeforeViewport = Math.Max(logicalSizeBeforeViewport, Math.Abs(_viewport.X - _extendedViewport.X)); 4776pixelSizeBeforeViewport = Math.Max(pixelSizeBeforeViewport, Math.Abs(_viewport.Y - _extendedViewport.Y)); 4780logicalSizeBeforeViewport = Math.Max(logicalSizeBeforeViewport, Math.Abs(_viewport.Y - _extendedViewport.Y)); 6414double eps = (Math.Abs(value1) + Math.Abs(value2)) * Tolerance; 11740else if (DoubleUtil.GreaterThan(Math.Abs(newOffset - oldOffset), _viewport.Width)) 11756else if (DoubleUtil.GreaterThan(Math.Abs(newOffset - oldOffset), _viewport.Height))
src\Framework\System\windows\Documents\CaretElement.cs (2)
413deltaToScroll = Math.Abs(targetPoint.Y); 430deltaToScroll = Math.Abs(targetPoint.X);
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (5)
568if (Math.Abs(textRunRect.Left - fixedBlockRect.Left) <= textRun.DefaultCharWidth || 569Math.Abs(textRunRect.Right - fixedBlockRect.Right) <= textRun.DefaultCharWidth) 1040if (Math.Abs(t.BoundingRect.Left - row.BoundingRect.Left) < fudge && 1041Math.Abs(t.BoundingRect.Right - row.BoundingRect.Right) < fudge && 1042Math.Abs(t.BoundingRect.Bottom - row.BoundingRect.Top) < fudge)
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (1)
223double overlap = Math.Abs(thisRectRefX - otherRectRefX);
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (1)
892double xDistance = Math.Abs(currentPt.X - prevPt.X);
src\Framework\System\windows\Documents\TextSelection.cs (2)
2259caretRectangle.Y += caretRectangle.Height - Math.Abs(bottom.Y - top.Y); 2260caretRectangle.Height = Math.Abs(bottom.Y - top.Y);
src\Framework\System\Windows\FrameworkElement.cs (12)
4180Double yCoverD = (yConstrInfinite ? Double.PositiveInfinity : Math.Abs(yConstr/d)); 4181Double xCoverA = (xConstrInfinite ? Double.PositiveInfinity : Math.Abs(xConstr/a)); 4201h = Math.Min(0.5*Math.Abs(xConstr/c), yCoverD); 4212w = Math.Min( 0.5*Math.Abs(yConstr/b), xCoverA); 4220Double yCoverB = Math.Abs(yConstr/b); 4221Double xCoverC = Math.Abs(xConstr/c); 4241h = Math.Min(0.5*Math.Abs(yConstr/d), xCoverC); 4252w = Math.Min( 0.5*Math.Abs(xConstr/a), yCoverB); 4258Double xCoverA = Math.Abs(xConstr / a); // w-intercept of x-constraint line. 4259Double xCoverC = Math.Abs(xConstr / c); // h-intercept of x-constraint line. 4261Double yCoverB = Math.Abs(yConstr / b); // w-intercept of y-constraint line. 4262Double yCoverD = Math.Abs(yConstr / d); // h-intercept of y-constraint line.
src\Framework\System\Windows\Shapes\Shape.cs (2)
474return Math.Abs(StrokeThickness); 491thickness = Math.Abs(strokeThickness);
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
176if (!isIndeterminate && remainder > 0.0 && Math.Abs(width - trackWidth) < 1.0e-5)
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
176if (!isIndeterminate && remainder > 0.0 && Math.Abs(width - trackWidth) < 1.0e-5)
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
176if (!isIndeterminate && remainder > 0.0 && Math.Abs(width - trackWidth) < 1.0e-5)
System (1)
net\System\Net\mail\SmtpDateTime.cs (1)
442uint hours = (uint)Math.Abs(Math.Floor(span.TotalHours));
System.Activities.Presentation (25)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Tolerances.cs (1)
26return Math.Abs(d) < Tolerances.ZeroThreshold;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitHelper.cs (2)
157double distX = Math.Abs(shapeCenter.X - mousePosition.X); 158double distY = Math.Abs(shapeCenter.Y - mousePosition.Y);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (6)
351if (Math.Abs(slope1) == Math.Abs(slope2)) 405Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical; 426Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical; 509Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical; 514orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (4)
952int steps = (int)Math.Max(Math.Abs(sub.X / margin.Width), Math.Abs(sub.Y / margin.Height)); //one of the values will be null 1468newDistance = (int)Math.Abs(newCover.A.X - escape.X); 1472newDistance = (int)Math.Abs(newCover.A.Y - escape.Y);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DesignerGeometryHelper.cs (3)
17return Math.Abs(begin.X - end.X) + Math.Abs(begin.Y - end.Y); 69double length = Math.Abs((points[i].X == points[i + 1].X) ? points[i].Y - points[i + 1].Y : points[i].X - points[i + 1].X);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DoubleExtensions.cs (1)
14return Math.Abs(a - b) < DesignerGeometryHelper.EPS;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (4)
331this.canvasOffset.X = Math.Abs(this.canvasOffset.X); 332this.canvasOffset.Y = Math.Abs(this.canvasOffset.Y); 425panelWidth = Math.Abs(offsetPlusX - offsetMinusX); 426panelHeight = Math.Abs(offsetPlusY - offsetMinusY);
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (2)
126if (!this.IsSelecting && (Math.Abs(positionToScreen.X - this.MouseDownPointToScreen.X) > SystemParameters.MinimumHorizontalDragDistance || 127Math.Abs(positionToScreen.Y - this.MouseDownPointToScreen.Y) > SystemParameters.MinimumVerticalDragDistance))
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (2)
759if (Math.Abs(difference.X) > SystemParameters.MinimumHorizontalDragDistance || 760Math.Abs(difference.Y) > SystemParameters.MinimumVerticalDragDistance)
System.Data (11)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\Tolerances.cs (1)
26return Math.Abs(d) < Tolerances.ZeroThreshold;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (6)
351if (Math.Abs(slope1) == Math.Abs(slope2)) 405Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical; 426Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical; 509Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical; 514orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DoubleExtensions.cs (1)
14return Math.Abs(a - b) < DesignerGeometryHelper.EPS;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (2)
425panelWidth = Math.Abs(offsetPlusX - offsetMinusX); 426panelHeight = Math.Abs(offsetPlusY - offsetMinusY);
fx\src\data\System\Data\Filter\FunctionNode.cs (1)
264return(Math.Abs((double)argumentValues[0]));
System.Numerics (4)
System\Numerics\Complex.cs (4)
138if (Math.Abs(d) < Math.Abs(c)) { 161double c = Math.Abs(value.m_real); 162double d = Math.Abs(value.m_imaginary);
System.Web.DataVisualization (64)
Common\ChartTypes\BoxPlotChart.cs (1)
439 rectSize.Height = (float)Math.Abs(rectSize.Y - vAxis.GetPosition( point.YValues[2] ));
Common\ChartTypes\FastLineChart.cs (2)
308 double axesValuesPixelSizeX = Math.Abs(hAxis.PositionToValue(axesMin.Width + pixelSize.Width, false) - hAxis.PositionToValue(axesMin.Width, false)); 399 if( Math.Abs(xValue - xValuePrev) < axesValuesPixelSizeX)
Common\ChartTypes\FastPointChart.cs (4)
309 double axesValuesPixelSizeX = Math.Abs(hAxis.PositionToValue(axesMin.Width + pixelSize.Width, false) - hAxis.PositionToValue(axesMin.Width, false)); 310 double axesValuesPixelSizeY = Math.Abs(vAxis.PositionToValue(axesMin.Height + pixelSize.Height, false) - vAxis.PositionToValue(axesMin.Height, false)); 376 if(Math.Abs(xValue - xValuePrev) < axesValuesPixelSizeX && 377 Math.Abs(yValue - yValuePrev) < axesValuesPixelSizeY)
Common\ChartTypes\FunnelChart.cs (6)
2211 float topSpacing = (float)Math.Abs( (plotAreaPositionAbs.Width/ 2f) * Math.Sin(this._rotation3D / 180F * Math.PI) ); 2212 float bottomSpacing = (float)Math.Abs( (plotAreaPositionAbs.Width/ 2f) * Math.Sin(this._rotation3D / 180F * Math.PI) ); 2763 yValue = Math.Abs(Math.Log( yValue, this.Area.AxisY.LogarithmBase )); 2767 yValue = Math.Abs( yValue ); 2786 return Math.Abs(Math.Log( point.XValue, this.Area.AxisX.LogarithmBase )); 2788 return Math.Abs(point.XValue);
Common\ChartTypes\KagiChart.cs (1)
417 else if( Math.Abs(dataPoint.YValues[yValueIndex] - prevClose) < reversalAmount)
Common\ChartTypes\PieChart.cs (8)
343 total += Math.Abs(dp.YValues[0]); 385 if(!dataPoint.IsEmpty && Math.Abs(dataPoint.YValues[0]) <= threshold) 389 collectedTotal += Math.Abs(dataPoint.YValues[0]); 735 sum += Math.Abs( point.YValues[0] ); 824 float sweepAngle = (float)( Math.Abs(point.YValues[0]) / sum * 360); 2425 sum += Math.Abs(point.YValues[0]); 4352 sum += Math.Abs(point.YValues[0]); 4392 sweepAngle = (float)( Math.Abs(point.YValues[0]) * 360 / sum );
Common\ChartTypes\PointAndFigureChart.cs (3)
748 double boxYSize = Math.Abs( 751 double boxXSize = Math.Abs( 810 boxSizeRel = Math.Abs(boxSizeRel -
Common\ChartTypes\PolarChart.cs (1)
160 sectorNumber = (int)(Math.Abs(max - min) / interval);
Common\ChartTypes\RangeChart.cs (2)
985if (Math.Abs(firstPoint.yPosition - (double)thirdPoint.Y) > smallDouble && 986Math.Abs(secondPoint.yPosition - (double)fourthPoint.Y) > smallDouble &&
Common\ChartTypes\StackedAreaChart.cs (1)
186 _totalPerPoint[index] += Math.Abs(ser.Points[index].YValues[0]);
Common\ChartTypes\StackedBarChart.cs (1)
172 totals[index] += Math.Abs(ser.Points[index].YValues[0]);
Common\ChartTypes\StackedColumnChart.cs (1)
165 totals[index] += Math.Abs(ser.Points[index].YValues[0]);
Common\DataManager\DataManager.cs (4)
992 totalPerPoint += Math.Abs(ser.Points[pointIndex].YValues[0]); 1004 totalPerPoint = Math.Abs(totalPerPoint); 1052 totalPerPoint += Math.Abs(ser.Points[pointIndex].YValues[0]); 1065 totalPerPoint = Math.Abs(totalPerPoint);
Common\Formulas\StatisticalAnalysis.cs (9)
1500 if ( Math.Abs(d) < FPMIN ) d=FPMIN; 1512 if( Math.Abs(d) < FPMIN ) d=FPMIN; 1516 if( Math.Abs(c) < FPMIN ) c = FPMIN; 1528 if (Math.Abs(d) < FPMIN) d=FPMIN; 1532 if (Math.Abs(c) < FPMIN) c=FPMIN; 1541 if (Math.Abs(del-1.0) < EPS) 1950 tValue = Math.Abs( tValue ); 1993 result=1.0/(1+result*Math.Abs(zValue)); 2101 if ( Math.Abs(x) < 0.42 )
Common\Formulas\TechGeneralIndicators.cs (4)
179 distanceOne = Math.Abs( inputValues[1][index] - inputValues[2][index] ); 182 distanceTwo = Math.Abs( inputValues[3][index-1] - inputValues[1][index] ); 185 distanceTree = Math.Abs( inputValues[3][index-1] - inputValues[2][index] ); 772 sum += Math.Abs( movingAverage[index] - typicalPrice[indexSum] );
Common\Formulas\TimeSeriesAndForecasting.cs (3)
333 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 ); 368 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 ); 411 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 );
Common\General\Axis.cs (1)
6320if (Math.Abs(GetAxisPosition() - edgePosition) < 0.0015)
Common\General\AxisLabels.cs (4)
708 double valu = Math.Log(Math.Abs(labValue)); 709 int digits = (int)Math.Abs(inter)+5; 716 if( Math.Abs(inter) < Math.Abs(valu)-5 )
Common\General\AxisScaleSegments.cs (2)
987 if( Math.Abs(this[index].ScaleMinimum - axisValue) < Math.Abs(axisValue - this[index - 1].ScaleMaximum))
Common\General\ChartArea.cs (3)
2712 width = (float)Math.Abs(Math.Ceiling(width)); 2713 height = (float)Math.Abs(Math.Ceiling(height)); 2944 double scaleRatio = 360.0 / Math.Abs(this.AxisX.Maximum - this.AxisX.Minimum);
Common\General\ChartAreaAxes.cs (2)
246axisX.SetInterval = Math.Abs(axisX.maximum - axisX.minimum) / 12.0; 1837 double interval = Math.Abs( (double)seriesXValues[seriesIndex][ point - 1 ] - (double)seriesXValues[seriesIndex][ point ] );
Common\General\ChartElement.cs (1)
1343 result = Math.Abs(result);
System.Windows.Forms (1)
winforms\Managed\System\WinForms\ToolStrip.cs (1)
2389double tan = Math.Abs(Math.Atan(oppositeSide/adjacentSide));
System.Windows.Forms.DataVisualization (64)
Common\ChartTypes\BoxPlotChart.cs (1)
439 rectSize.Height = (float)Math.Abs(rectSize.Y - vAxis.GetPosition( point.YValues[2] ));
Common\ChartTypes\FastLineChart.cs (2)
308 double axesValuesPixelSizeX = Math.Abs(hAxis.PositionToValue(axesMin.Width + pixelSize.Width, false) - hAxis.PositionToValue(axesMin.Width, false)); 399 if( Math.Abs(xValue - xValuePrev) < axesValuesPixelSizeX)
Common\ChartTypes\FastPointChart.cs (4)
309 double axesValuesPixelSizeX = Math.Abs(hAxis.PositionToValue(axesMin.Width + pixelSize.Width, false) - hAxis.PositionToValue(axesMin.Width, false)); 310 double axesValuesPixelSizeY = Math.Abs(vAxis.PositionToValue(axesMin.Height + pixelSize.Height, false) - vAxis.PositionToValue(axesMin.Height, false)); 376 if(Math.Abs(xValue - xValuePrev) < axesValuesPixelSizeX && 377 Math.Abs(yValue - yValuePrev) < axesValuesPixelSizeY)
Common\ChartTypes\FunnelChart.cs (6)
2211 float topSpacing = (float)Math.Abs( (plotAreaPositionAbs.Width/ 2f) * Math.Sin(this._rotation3D / 180F * Math.PI) ); 2212 float bottomSpacing = (float)Math.Abs( (plotAreaPositionAbs.Width/ 2f) * Math.Sin(this._rotation3D / 180F * Math.PI) ); 2763 yValue = Math.Abs(Math.Log( yValue, this.Area.AxisY.LogarithmBase )); 2767 yValue = Math.Abs( yValue ); 2786 return Math.Abs(Math.Log( point.XValue, this.Area.AxisX.LogarithmBase )); 2788 return Math.Abs(point.XValue);
Common\ChartTypes\KagiChart.cs (1)
417 else if( Math.Abs(dataPoint.YValues[yValueIndex] - prevClose) < reversalAmount)
Common\ChartTypes\PieChart.cs (8)
343 total += Math.Abs(dp.YValues[0]); 385 if(!dataPoint.IsEmpty && Math.Abs(dataPoint.YValues[0]) <= threshold) 389 collectedTotal += Math.Abs(dataPoint.YValues[0]); 735 sum += Math.Abs( point.YValues[0] ); 824 float sweepAngle = (float)( Math.Abs(point.YValues[0]) / sum * 360); 2425 sum += Math.Abs(point.YValues[0]); 4352 sum += Math.Abs(point.YValues[0]); 4392 sweepAngle = (float)( Math.Abs(point.YValues[0]) * 360 / sum );
Common\ChartTypes\PointAndFigureChart.cs (3)
748 double boxYSize = Math.Abs( 751 double boxXSize = Math.Abs( 810 boxSizeRel = Math.Abs(boxSizeRel -
Common\ChartTypes\PolarChart.cs (1)
160 sectorNumber = (int)(Math.Abs(max - min) / interval);
Common\ChartTypes\RangeChart.cs (2)
985if (Math.Abs(firstPoint.yPosition - (double)thirdPoint.Y) > smallDouble && 986Math.Abs(secondPoint.yPosition - (double)fourthPoint.Y) > smallDouble &&
Common\ChartTypes\StackedAreaChart.cs (1)
186 _totalPerPoint[index] += Math.Abs(ser.Points[index].YValues[0]);
Common\ChartTypes\StackedBarChart.cs (1)
172 totals[index] += Math.Abs(ser.Points[index].YValues[0]);
Common\ChartTypes\StackedColumnChart.cs (1)
165 totals[index] += Math.Abs(ser.Points[index].YValues[0]);
Common\DataManager\DataManager.cs (4)
992 totalPerPoint += Math.Abs(ser.Points[pointIndex].YValues[0]); 1004 totalPerPoint = Math.Abs(totalPerPoint); 1052 totalPerPoint += Math.Abs(ser.Points[pointIndex].YValues[0]); 1065 totalPerPoint = Math.Abs(totalPerPoint);
Common\Formulas\StatisticalAnalysis.cs (9)
1500 if ( Math.Abs(d) < FPMIN ) d=FPMIN; 1512 if( Math.Abs(d) < FPMIN ) d=FPMIN; 1516 if( Math.Abs(c) < FPMIN ) c = FPMIN; 1528 if (Math.Abs(d) < FPMIN) d=FPMIN; 1532 if (Math.Abs(c) < FPMIN) c=FPMIN; 1541 if (Math.Abs(del-1.0) < EPS) 1950 tValue = Math.Abs( tValue ); 1993 result=1.0/(1+result*Math.Abs(zValue)); 2101 if ( Math.Abs(x) < 0.42 )
Common\Formulas\TechGeneralIndicators.cs (4)
179 distanceOne = Math.Abs( inputValues[1][index] - inputValues[2][index] ); 182 distanceTwo = Math.Abs( inputValues[3][index-1] - inputValues[1][index] ); 185 distanceTree = Math.Abs( inputValues[3][index-1] - inputValues[2][index] ); 772 sum += Math.Abs( movingAverage[index] - typicalPrice[indexSum] );
Common\Formulas\TimeSeriesAndForecasting.cs (3)
333 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 ); 368 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 ); 411 interval = Math.Abs( inputValues[0][0] - inputValues[0][inputValues[0].Length - 1] ) / ( inputValues[0].Length - 1 );
Common\General\Axis.cs (1)
6320if (Math.Abs(GetAxisPosition() - edgePosition) < 0.0015)
Common\General\AxisLabels.cs (4)
708 double valu = Math.Log(Math.Abs(labValue)); 709 int digits = (int)Math.Abs(inter)+5; 716 if( Math.Abs(inter) < Math.Abs(valu)-5 )
Common\General\AxisScaleSegments.cs (2)
987 if( Math.Abs(this[index].ScaleMinimum - axisValue) < Math.Abs(axisValue - this[index - 1].ScaleMaximum))
Common\General\ChartArea.cs (3)
2712 width = (float)Math.Abs(Math.Ceiling(width)); 2713 height = (float)Math.Abs(Math.Ceiling(height)); 2944 double scaleRatio = 360.0 / Math.Abs(this.AxisX.Maximum - this.AxisX.Minimum);
Common\General\ChartAreaAxes.cs (2)
246axisX.SetInterval = Math.Abs(axisX.maximum - axisX.minimum) / 12.0; 1837 double interval = Math.Abs( (double)seriesXValues[seriesIndex][ point - 1 ] - (double)seriesXValues[seriesIndex][ point ] );
Common\General\ChartElement.cs (1)
1343 result = Math.Abs(result);
WindowsBase (10)
Base\System\Windows\Point.cs (2)
157return new Size(Math.Abs(point._x), Math.Abs(point._y));
Base\System\Windows\Vector.cs (4)
72this /= Math.Max(Math.Abs(_x),Math.Abs(_y)); 289return new Size(Math.Abs(vector._x), Math.Abs(vector._y));
Shared\MS\Internal\DoubleUtil.cs (4)
63double eps = (Math.Abs(value1) + Math.Abs(value2) + 10.0) * DBL_EPSILON; 163return Math.Abs(value-1.0) < 10.0 * DBL_EPSILON; 176return Math.Abs(value) < 10.0 * DBL_EPSILON;