354 references to Abs
mscorlib (10)
system\globalization\CalendricalCalculationsHelper.cs (1)
267
return CopySign(Math.Min(Math.
Abs
(equation), TwelveHours), equation);
system\math.cs (9)
87
if (
Abs
(value) < doubleRoundLimit) {
92
if (
Abs
(fraction) >= 0.5d) {
224
alternativeResult = regularMod - (Math.
Abs
(y) * Math.Sign(x));
225
if (Math.
Abs
(alternativeResult) == Math.
Abs
(regularMod)) {
228
if (Math.
Abs
(roundedResult) > Math.
Abs
(divisionResult)) {
235
if (Math.
Abs
(alternativeResult) < Math.
Abs
(regularMod)) {
PresentationCore (76)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (6)
401
return Math.
Abs
(to - from);
438
return Math.
Abs
((to - from).Length);
443
return Math.
Abs
((to - from).Length);
478
return Math.
Abs
(((System.Windows.Vector)to - (System.Windows.Vector)from).Length);
495
return Math.
Abs
((to - from).Length);
500
return Math.
Abs
((to - from).Length);
Core\CSharp\MS\Internal\Ink\Bezier.cs (4)
389
bool accept = (Math.
Abs
(det) > Math.
Abs
(s) * DoubleUtil.DBL_EPSILON &&
390
Math.
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)
625
radius = Math.
Abs
(nearest.Y);
629
radius = Math.
Abs
(nearest.X);
762
findex = Math.
Abs
(Math.Min(s1, s2) - 0d) < Math.
Abs
(Math.Max(s1, s2) - 1d) ? 0d : 1d;
Core\CSharp\MS\Internal\Ink\Lasso.cs (2)
523
return (Math.
Abs
(vector.X) < MinDistance && Math.
Abs
(vector.Y) < MinDistance);
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (2)
752
double r = (Math.
Abs
(nextNode.X) < Math.
Abs
(nextNode.Y)) //DoubleUtil.IsZero(nextNode.X)
Core\CSharp\MS\Internal\Ink\StrokeRenderer.cs (5)
95
double delta = Math.
Abs
(GetAngleDeltaFromLast(strokeNode.PreviousPosition, strokeNode.Position, ref lastAngle));
528
bool directionChangedOverAbsoluteThreshold = Math.
Abs
(delta) > 90d && Math.
Abs
(delta) < (360d - 90d);
529
bool directionChangedOverOverlapThreshold = overlap && !(ignorePressure || strokeNode.PressureFactor == 1f) && Math.
Abs
(delta) > 30d && Math.
Abs
(delta) < (360d - 30d);
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (2)
619
if (Math.
Abs
(visUV1.X - visUV2.X) > Math.
Abs
(visUV1.Y - visUV2.Y))
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (2)
1362
penThickness = Math.
Abs
(penThickness);
1438
drawingPenThickness = drawingPenThickness / Math.
Abs
(unitValue);
Core\CSharp\System\Windows\Input\MouseDevice.cs (2)
2274
return (Math.
Abs
(newPosition.X - _lastClick.X) < doubleClickDeltaX) &&
2275
(Math.
Abs
(newPosition.Y - _lastClick.Y) < doubleClickDeltaY);
Core\CSharp\System\Windows\Media\Animation\Clock.cs (1)
2163
timeUntilNextBoundary = DivideTimeSpan(_currentDuration.TimeSpan, Math.
Abs
(parentSpeed));
Core\CSharp\System\Windows\Media\Animation\KeySpline.cs (2)
364
absdx = Math.
Abs
(dx);
379
if (Math.
Abs
(x - time) < accuracy * absdx)
Core\CSharp\System\Windows\Media\EllipseGeometry.cs (13)
106
currentCenter.X - Math.
Abs
(currentRadiusX),
107
currentCenter.Y - Math.
Abs
(currentRadiusY),
108
2.0 * Math.
Abs
(currentRadiusX),
109
2.0 * Math.
Abs
(currentRadiusY));
181
strokeThickness = Math.
Abs
(pen.Thickness);
185
center.X - Math.
Abs
(radiusX)-0.5*strokeThickness,
186
center.Y - Math.
Abs
(radiusY)-0.5*strokeThickness,
187
2.0 * Math.
Abs
(radiusX)+strokeThickness,
188
2.0 * Math.
Abs
(radiusY)+strokeThickness);
271
double area = Math.
Abs
(RadiusX * RadiusY) * Math.PI;
277
area *= Math.
Abs
(transform.Value.Determinant);
390
radiusX = Math.
Abs
(radiusX);
391
radiusY = 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)
147
scaleX = Math.
Abs
(m.M11);
148
scaleY = Math.
Abs
(m.M22);
166
scaleX = Math.
Abs
(m.M12);
167
scaleY = Math.
Abs
(m.M21);
Core\CSharp\System\Windows\Media\RectangleGeometry.cs (6)
215
strokeThickness = Math.
Abs
(pen.Thickness);
314
double area = Math.
Abs
(rect.Width * rect.Height);
317
area -= Math.
Abs
(radiusX * radiusY) * (4.0 - Math.PI);
323
area *= Math.
Abs
(transform.Value.Determinant);
502
radiusX = Math.Min(rect.Width * (1.0 / 2.0), Math.
Abs
(radiusX));
503
radiusY = Math.Min(rect.Height * (1.0 / 2.0), Math.
Abs
(radiusY));
Core\CSharp\System\Windows\Media3D\OrthographicCamera.cs (1)
232
return x + 0.1*Math.
Abs
(x) + 1.0;
Core\CSharp\System\Windows\Media3D\Quaternion.cs (11)
175
double maxcoeff = Math.Max(Math.
Abs
(_x),Math.Max(Math.
Abs
(_y),Math.
Abs
(_z)));
265
double rmax = 1.0/Max(Math.
Abs
(_x),
266
Math.
Abs
(_y),
267
Math.
Abs
(_z),
268
Math.
Abs
(_w));
451
double max = Math.Max(Math.Max(Math.
Abs
(_x),Math.
Abs
(_y)),
452
Math.Max(Math.
Abs
(_z),Math.
Abs
(_w)));
Core\CSharp\System\Windows\Media3D\Vector3D.cs (6)
94
double m = Math.
Abs
(_x);
95
double absy = Math.
Abs
(_y);
96
double absz = Math.
Abs
(_z);
473
return new Size3D(Math.
Abs
(vector._x), Math.
Abs
(vector._y), Math.
Abs
(vector._z));
PresentationFramework (85)
src\Framework\MS\Internal\AnimatedTypeHelpers.cs (1)
81
return Math.
Abs
(to - from);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (4)
1073
if (DoubleUtil.GreaterThan(Math.
Abs
(offsetX), Math.
Abs
(_offsetX)))
1085
if (DoubleUtil.GreaterThan(Math.
Abs
(offsetY), Math.
Abs
(_offsetY)))
src\Framework\MS\Internal\Documents\DocumentGrid.cs (1)
2298
double aspectDiff = Math.
Abs
(layoutAspect - viewportAspect);
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (2)
139
if (Math.
Abs
(_scrollData.ExtentWidth - _scrollData.ViewportWidth) < 1)
143
if (Math.
Abs
(_scrollData.ExtentHeight - _scrollData.ViewportHeight) < 1)
src\Framework\MS\Internal\Documents\MultiPageTextView.cs (4)
1105
horz = Math.Min(Math.
Abs
(point.X - textViewBounds.Left), Math.
Abs
(point.X - textViewBounds.Right));
1113
vert = Math.Min(Math.
Abs
(point.Y - textViewBounds.Top), Math.
Abs
(point.Y - textViewBounds.Bottom));
src\Framework\MS\Internal\Documents\TextDocumentView.cs (2)
2115
double distance = Math.
Abs
(point.X - midPoint.X) + Math.
Abs
(point.Y - midPoint.Y);
src\Framework\System\Windows\Controls\DataGrid.cs (2)
6592
distance = Math.
Abs
(pt.Y - cellBounds.Top);
6600
distance = Math.
Abs
(pt.X - cellBounds.Left);
src\Framework\System\Windows\Controls\DataGridColumnCollection.cs (1)
1345
TakeAwayWidthFromColumns(null, Math.
Abs
(availableSpaceChange), false, newTotalAvailableSpace);
src\Framework\System\Windows\Controls\Grid.cs (2)
3284
return (Math.
Abs
(d) < c_epsilon);
3295
return (Math.
Abs
(d1 - d2) < c_epsilon);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1250
return (DoubleUtil.GreaterThan(Math.
Abs
(currentPos.X - originalPos.X), c_thresholdX));
src\Framework\System\Windows\Controls\Primitives\DataGridColumnHeadersPresenter.cs (1)
649
return DoubleUtil.GreaterThan(Math.
Abs
(currentPos.X - originalPos.X), SystemParameters.MinimumHorizontalDragDistance);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (11)
2114
if (Math.
Abs
(score - childArea) < Tolerance)
2140
if (Math.
Abs
(intersection.Width - childBounds.Width) > Tolerance ||
2141
Math.
Abs
(intersection.Height - childBounds.Height) > Tolerance)
2156
if (!IsTransparent || double.IsNaN(horizontalAxis.Y) || Math.
Abs
(horizontalAxis.Y) < Tolerance)
2168
else if (IsTransparent && Math.
Abs
(horizontalAxis.X) < Tolerance)
2191
if (!IsTransparent || double.IsNaN(verticalAxis.X) || Math.
Abs
(verticalAxis.X) < Tolerance)
2202
else if (IsTransparent && Math.
Abs
(verticalAxis.Y) < Tolerance)
2257
if (!IsTransparent || double.IsNaN(verticalAxis.X) || Math.
Abs
(verticalAxis.X) < Tolerance)
2261
else if (IsTransparent && Math.
Abs
(verticalAxis.Y) < Tolerance)
2279
if (!IsTransparent || double.IsNaN(horizontalAxis.X) || Math.
Abs
(horizontalAxis.Y) < Tolerance)
2283
else if (IsTransparent && Math.
Abs
(horizontalAxis.X) < Tolerance)
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (2)
223
restrictWidth = Math.
Abs
(restrictedSize.Width - desiredSize.Width) > Popup.Tolerance;
224
restrictHeight = Math.
Abs
(restrictedSize.Height - desiredSize.Height) > Popup.Tolerance;
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (2)
354
perpendicularDragDelta = Math.
Abs
(verticalDragDelta);
358
perpendicularDragDelta = Math.
Abs
(horizontalDragDelta);
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (4)
536
Point pt2 = new Point(startPoint.X + tickLen2, y0 + Math.
Abs
(tickLen2) * progression);
549
pt2 = new Point(startPoint.X + tickLen2, y0 - Math.
Abs
(tickLen2) * progression);
641
Point pt2 = new Point(x0 + Math.
Abs
(tickLen2) * progression, startPoint.Y + tickLen2);
654
pt2 = new Point(x0 - Math.
Abs
(tickLen2) * progression, startPoint.Y + tickLen2);
src\Framework\System\Windows\Controls\ScrollViewer.cs (10)
1803
DoubleUtil.LessThan(Math.
Abs
(unusedX), PanningInfo.PreFeedbackTranslationX))
1811
DoubleUtil.LessThan(Math.
Abs
(unusedY), PanningInfo.PreFeedbackTranslationY))
1904
return (DoubleUtil.GreaterThanOrClose(Math.
Abs
(_panningInfo.UnusedTranslation.X), PanningInfo.MaxInertiaBoundaryTranslation) ||
1905
DoubleUtil.GreaterThanOrClose(Math.
Abs
(_panningInfo.UnusedTranslation.Y), PanningInfo.MaxInertiaBoundaryTranslation));
1924
bool validX = (DoubleUtil.GreaterThan(Math.
Abs
(translation.X), PanningInfo.PrePanTranslation));
1925
bool validY = (DoubleUtil.GreaterThan(Math.
Abs
(translation.Y), PanningInfo.PrePanTranslation));
1935
bool biggerX = (DoubleUtil.GreaterThanOrClose(Math.
Abs
(translation.X), Math.
Abs
(translation.Y)));
1948
bool biggerY = (DoubleUtil.GreaterThanOrClose(Math.
Abs
(translation.Y), Math.
Abs
(translation.X)));
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (10)
515
double delta = Math.
Abs
(scrollX - oldViewportOffset.X);
641
double delta = Math.
Abs
(scrollY - oldViewportOffset.Y);
4670
pixelSizeBeforeViewport = Math.Max(pixelSizeBeforeViewport, Math.
Abs
(_viewport.X - _extendedViewport.X));
4674
logicalSizeBeforeViewport = Math.Max(logicalSizeBeforeViewport, Math.
Abs
(_viewport.X - _extendedViewport.X));
4776
pixelSizeBeforeViewport = Math.Max(pixelSizeBeforeViewport, Math.
Abs
(_viewport.Y - _extendedViewport.Y));
4780
logicalSizeBeforeViewport = Math.Max(logicalSizeBeforeViewport, Math.
Abs
(_viewport.Y - _extendedViewport.Y));
6414
double eps = (Math.
Abs
(value1) + Math.
Abs
(value2)) * Tolerance;
11740
else if (DoubleUtil.GreaterThan(Math.
Abs
(newOffset - oldOffset), _viewport.Width))
11756
else if (DoubleUtil.GreaterThan(Math.
Abs
(newOffset - oldOffset), _viewport.Height))
src\Framework\System\windows\Documents\CaretElement.cs (2)
413
deltaToScroll = Math.
Abs
(targetPoint.Y);
430
deltaToScroll = Math.
Abs
(targetPoint.X);
src\Framework\System\Windows\Documents\FixedSOMPageConstructor.cs (5)
568
if (Math.
Abs
(textRunRect.Left - fixedBlockRect.Left) <= textRun.DefaultCharWidth ||
569
Math.
Abs
(textRunRect.Right - fixedBlockRect.Right) <= textRun.DefaultCharWidth)
1040
if (Math.
Abs
(t.BoundingRect.Left - row.BoundingRect.Left) < fudge &&
1041
Math.
Abs
(t.BoundingRect.Right - row.BoundingRect.Right) < fudge &&
1042
Math.
Abs
(t.BoundingRect.Bottom - row.BoundingRect.Top) < fudge)
src\Framework\System\Windows\Documents\FixedSOMSemanticBox.cs (1)
223
double overlap = Math.
Abs
(thisRectRefX - otherRectRefX);
src\Framework\System\Windows\Documents\FixedTextBuilder.cs (1)
892
double xDistance = Math.
Abs
(currentPt.X - prevPt.X);
src\Framework\System\windows\Documents\TextSelection.cs (2)
2259
caretRectangle.Y += caretRectangle.Height - Math.
Abs
(bottom.Y - top.Y);
2260
caretRectangle.Height = Math.
Abs
(bottom.Y - top.Y);
src\Framework\System\Windows\FrameworkElement.cs (12)
4180
Double yCoverD = (yConstrInfinite ? Double.PositiveInfinity : Math.
Abs
(yConstr/d));
4181
Double xCoverA = (xConstrInfinite ? Double.PositiveInfinity : Math.
Abs
(xConstr/a));
4201
h = Math.Min(0.5*Math.
Abs
(xConstr/c), yCoverD);
4212
w = Math.Min( 0.5*Math.
Abs
(yConstr/b), xCoverA);
4220
Double yCoverB = Math.
Abs
(yConstr/b);
4221
Double xCoverC = Math.
Abs
(xConstr/c);
4241
h = Math.Min(0.5*Math.
Abs
(yConstr/d), xCoverC);
4252
w = Math.Min( 0.5*Math.
Abs
(xConstr/a), yCoverB);
4258
Double xCoverA = Math.
Abs
(xConstr / a); // w-intercept of x-constraint line.
4259
Double xCoverC = Math.
Abs
(xConstr / c); // h-intercept of x-constraint line.
4261
Double yCoverB = Math.
Abs
(yConstr / b); // w-intercept of y-constraint line.
4262
Double yCoverD = Math.
Abs
(yConstr / d); // h-intercept of y-constraint line.
src\Framework\System\Windows\Shapes\Shape.cs (2)
474
return Math.
Abs
(StrokeThickness);
491
thickness = Math.
Abs
(strokeThickness);
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
176
if (!isIndeterminate && remainder > 0.0 && Math.
Abs
(width - trackWidth) < 1.0e-5)
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
176
if (!isIndeterminate && remainder > 0.0 && Math.
Abs
(width - trackWidth) < 1.0e-5)
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
176
if (!isIndeterminate && remainder > 0.0 && Math.
Abs
(width - trackWidth) < 1.0e-5)
System (1)
net\System\Net\mail\SmtpDateTime.cs (1)
442
uint 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)
26
return Math.
Abs
(d) < Tolerances.ZeroThreshold;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\AutoSplitHelper.cs (2)
157
double distX = Math.
Abs
(shapeCenter.X - mousePosition.X);
158
double distY = Math.
Abs
(shapeCenter.Y - mousePosition.Y);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (6)
351
if (Math.
Abs
(slope1) == Math.
Abs
(slope2))
405
Orientation orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
426
Orientation orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
509
Orientation orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
514
orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (4)
952
int steps = (int)Math.Max(Math.
Abs
(sub.X / margin.Width), Math.
Abs
(sub.Y / margin.Height)); //one of the values will be null
1468
newDistance = (int)Math.
Abs
(newCover.A.X - escape.X);
1472
newDistance = (int)Math.
Abs
(newCover.A.Y - escape.Y);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DesignerGeometryHelper.cs (3)
17
return Math.
Abs
(begin.X - end.X) + Math.
Abs
(begin.Y - end.Y);
69
double 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)
14
return Math.
Abs
(a - b) < DesignerGeometryHelper.EPS;
System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (4)
331
this.canvasOffset.X = Math.
Abs
(this.canvasOffset.X);
332
this.canvasOffset.Y = Math.
Abs
(this.canvasOffset.Y);
425
panelWidth = Math.
Abs
(offsetPlusX - offsetMinusX);
426
panelHeight = Math.
Abs
(offsetPlusY - offsetMinusY);
System.Activities.Presentation\System\Activities\Presentation\View\RubberBandSelector.cs (2)
126
if (!this.IsSelecting && (Math.
Abs
(positionToScreen.X - this.MouseDownPointToScreen.X) > SystemParameters.MinimumHorizontalDragDistance ||
127
Math.
Abs
(positionToScreen.Y - this.MouseDownPointToScreen.Y) > SystemParameters.MinimumVerticalDragDistance))
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (2)
759
if (Math.
Abs
(difference.X) > SystemParameters.MinimumHorizontalDragDistance ||
760
Math.
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)
26
return Math.
Abs
(d) < Tolerances.ZeroThreshold;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (6)
351
if (Math.
Abs
(slope1) == Math.
Abs
(slope2))
405
Orientation orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
426
Orientation orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
509
Orientation orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
514
orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DoubleExtensions.cs (1)
14
return Math.
Abs
(a - b) < DesignerGeometryHelper.EPS;
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\View\ExtensionSurface.cs (2)
425
panelWidth = Math.
Abs
(offsetPlusX - offsetMinusX);
426
panelHeight = Math.
Abs
(offsetPlusY - offsetMinusY);
fx\src\data\System\Data\Filter\FunctionNode.cs (1)
264
return(Math.
Abs
((double)argumentValues[0]));
System.Numerics (4)
System\Numerics\Complex.cs (4)
138
if (Math.
Abs
(d) < Math.
Abs
(c)) {
161
double c = Math.
Abs
(value.m_real);
162
double 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)
985
if (Math.
Abs
(firstPoint.yPosition - (double)thirdPoint.Y) > smallDouble &&
986
Math.
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)
6320
if (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)
246
axisX.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)
2389
double 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)
985
if (Math.
Abs
(firstPoint.yPosition - (double)thirdPoint.Y) > smallDouble &&
986
Math.
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)
6320
if (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)
246
axisX.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)
157
return new Size(Math.
Abs
(point._x), Math.
Abs
(point._y));
Base\System\Windows\Vector.cs (4)
72
this /= Math.Max(Math.
Abs
(_x),Math.
Abs
(_y));
289
return new Size(Math.
Abs
(vector._x), Math.
Abs
(vector._y));
Shared\MS\Internal\DoubleUtil.cs (4)
63
double eps = (Math.
Abs
(value1) + Math.
Abs
(value2) + 10.0) * DBL_EPSILON;
163
return Math.
Abs
(value-1.0) < 10.0 * DBL_EPSILON;
176
return Math.
Abs
(value) < 10.0 * DBL_EPSILON;