164 references to Abs
PresentationCore (11)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (5)
385
return Math.
Abs
(to.ScA - from.ScA)
386
+ Math.
Abs
(to.ScR - from.ScR)
387
+ Math.
Abs
(to.ScG - from.ScG)
388
+ Math.
Abs
(to.ScB - from.ScB);
473
return Math.
Abs
(to - from);
Shared\MS\Internal\FloatUtil.cs (6)
34
float eps = ((float)Math.
Abs
(a) + (float)Math.
Abs
(b) + 10.0f) * FLT_EPSILON;
44
return (float)Math.
Abs
(a-1.0f) < 10.0f * FLT_EPSILON;
52
return (float)Math.
Abs
(a) < 10.0f * FLT_EPSILON;
61
return Math.
Abs
(denominator) <= Math.
Abs
(numerator) * INVERSE_FLT_MAX_PRECISION;
System.Numerics (19)
System\Numerics\Matrix3x2.cs (1)
478
if (Math.
Abs
(det) < float.Epsilon)
System\Numerics\Matrix4x4.cs (7)
277
if (Math.
Abs
(dot) > minAngle)
284
if (Math.
Abs
(dot) > minAngle)
286
zaxis = (Math.
Abs
(rotateAxis.Z) > minAngle) ? new Vector3(1, 0, 0) : new Vector3(0, 0, -1);
1420
if (Math.
Abs
(det) < float.Epsilon)
1598
fAbsX = (float)Math.
Abs
(pVectorBasis[a]->X);
1599
fAbsY = (float)Math.
Abs
(pVectorBasis[a]->Y);
1600
fAbsZ = (float)Math.
Abs
(pVectorBasis[a]->Z);
System\Numerics\Plane.cs (2)
124
if (Math.
Abs
(normalLengthSquared - 1.0f) < FLT_EPSILON)
138
if (Math.
Abs
(f - 1.0f) < FLT_EPSILON)
System\Numerics\Vector2_Intrinsics.cs (2)
149
return new Vector2(Math.
Abs
(value.X), Math.
Abs
(value.Y));
System\Numerics\Vector3_Intrinsics.cs (3)
168
return new Vector3(Math.
Abs
(value.X), Math.
Abs
(value.Y), Math.
Abs
(value.Z));
System\Numerics\Vector4_Intrinsics.cs (4)
202
return new Vector4(Math.
Abs
(value.X), Math.
Abs
(value.Y), Math.
Abs
(value.Z), Math.
Abs
(value.W));
System.Web.DataVisualization (64)
Common\Annotation\CalloutAnnotation.cs (2)
1170
SizeF size = new SizeF(Math.
Abs
(cloudCenterAbs.X - point.X), Math.
Abs
(cloudCenterAbs.Y - point.Y));
Common\ChartTypes\BoxPlotChart.cs (1)
1227
rectSize.Height = (float)Math.
Abs
(rectSize.Y - points[2].Y);
Common\ChartTypes\FastLineChart.cs (2)
632
if (Math.
Abs
(firstPointX - secondPointX) > Math.
Abs
(firstPointY - secondPointY))
Common\ChartTypes\FunnelChart.cs (2)
2954
startWidth = (float)Math.
Abs
( plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f -
2956
endWidth = (float)Math.
Abs
( plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f -
Common\ChartTypes\LineChart.cs (8)
434
if( Math.
Abs
(dataPointPos[pointIndex - 1].X - dataPointPos[pointIndex].X ) < minDifference )
445
if( Math.
Abs
(dataPointPos[pointIndex - 1].Y - dataPointPos[pointIndex].Y ) < minDifference )
879
if (Math.
Abs
(first.X - second.X) > Math.
Abs
(first.Y - second.Y))
908
if (Math.
Abs
(first.X - second.X) > Math.
Abs
(first.Y - second.Y))
987
bool topBottomLine = (Math.
Abs
(pt2.Y - pt1.Y) > Math.
Abs
(pt2.X - pt1.X));
Common\ChartTypes\StockChart.cs (2)
1638
rect.Width = (float)Math.
Abs
(points[1].X - points[0].X);
1639
rect.Height = (float)Math.
Abs
(points[1].Y - points[0].Y);
Common\General\Axis.cs (15)
1972
transformedTitlePosition.Width = Math.
Abs
(transformedTitlePosition.Width);
1977
transformedTitlePosition.Height = Math.
Abs
(transformedTitlePosition.Height);
3721
_aveLabelFontSize = _minLabelFontSize + Math.
Abs
(size - _minLabelFontSize)/2f;
5527
width = (float)Math.Cos((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5528
width += (float)Math.Sin((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
5530
height = (float)Math.Sin((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5531
height += (float)Math.Cos((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
5535
width = (float)Math.Cos((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
5536
width += (float)Math.Sin((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5538
height = (float)Math.Sin((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
5539
height += (float)Math.Cos((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5757
width = (float)Math.Cos((90 - Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
5758
width += (float)Math.Cos((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5760
height = (float)Math.Sin((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5761
height += (float)Math.Sin((90 - Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
Common\General\AxisScaleSegments.cs (2)
712
breakPosition.Height = (float)Math.
Abs
(breakPosition.Y - breakPosition.Height);
718
breakPosition.Width = (float)Math.
Abs
(breakPosition.X - breakPosition.Width);
Common\General\ChartArea.cs (2)
1708
if (Math.
Abs
(offset) > plottingRect.Width * 0.3f)
1736
if (Math.
Abs
(offset) > plottingRect.Height * 0.3f)
Common\General\ChartArea3D.cs (3)
2123
Math.
Abs
(points[1].X - points[0].X) >= interval.Width)
2128
Math.
Abs
(points[1].Y - points[0].Y) >= interval.Height)
2133
Math.
Abs
(points[1].Z - points[0].Z) >= interval.Width)
Common\General\ChartGraphics3D.cs (2)
432
if (Math.
Abs
(points[0].X - points[1].X) > Math.
Abs
(points[0].Y - points[1].Y))
Common\General\GridTickMarks.cs (10)
501
RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.
Abs
( second.X - first.X ) + 1, Math.
Abs
( second.Y - first.Y ) + 1 );
515
RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.
Abs
( second.X - first.X ) + 1, Math.
Abs
( second.Y - first.Y ) + 1 );
750
RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.
Abs
( second.X - first.X ) + 1, Math.
Abs
( second.Y - first.Y ) + 1 );
1498
if (Math.
Abs
(first.X - second.X) > Math.
Abs
(first.Y - second.Y))
1593
if (Math.
Abs
(first.X - second.X) > Math.
Abs
(first.Y - second.Y))
Common\General\Matrix3D.cs (13)
329
if( point.X - _translateX < 0F && Math.
Abs
( point.X - _translateX ) > minX )
330
minX = Math.
Abs
( point.X - _translateX );
332
if( point.X - _translateX >=0F && Math.
Abs
( point.X - _translateX ) > maxX )
333
maxX = Math.
Abs
( point.X - _translateX );
335
if( point.Y - _translateY < 0F && Math.
Abs
( point.Y - _translateY ) > minY )
336
minY = Math.
Abs
( point.Y - _translateY );
338
if( point.Y - _translateY >=0F && Math.
Abs
( point.Y - _translateY ) > maxY )
339
maxY = Math.
Abs
( point.Y - _translateY );
357
if( maxXScale < Math.
Abs
(point.X - _translateX) / width * 2 )
358
maxXScale = Math.
Abs
(point.X - _translateX) / width * 2;
361
if( maxYScale < Math.
Abs
(point.Y - _translateY) / height * 2 )
362
maxYScale = Math.
Abs
(point.Y - _translateY) / height * 2;
1113
if( Math.
Abs
( angleLeft - angleRight ) < 0.01 )
System.Windows.Forms (2)
winforms\Managed\System\WinForms\CheckedListBox.cs (1)
783
if (Math.
Abs
(tabOffset) < tabDistance) {
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
1212
weightDiscrepancy = Math.
Abs
(dataGridViewColumn.UsedFillWeight - dataGridViewColumn.FillWeight) / dataGridViewColumn.FillWeight;
System.Windows.Forms.DataVisualization (61)
Common\Annotation\CalloutAnnotation.cs (2)
1170
SizeF size = new SizeF(Math.
Abs
(cloudCenterAbs.X - point.X), Math.
Abs
(cloudCenterAbs.Y - point.Y));
Common\ChartTypes\BoxPlotChart.cs (1)
1227
rectSize.Height = (float)Math.
Abs
(rectSize.Y - points[2].Y);
Common\ChartTypes\FastLineChart.cs (2)
632
if (Math.
Abs
(firstPointX - secondPointX) > Math.
Abs
(firstPointY - secondPointY))
Common\ChartTypes\FunnelChart.cs (2)
2954
startWidth = (float)Math.
Abs
( plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f -
2956
endWidth = (float)Math.
Abs
( plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f -
Common\ChartTypes\LineChart.cs (8)
434
if( Math.
Abs
(dataPointPos[pointIndex - 1].X - dataPointPos[pointIndex].X ) < minDifference )
445
if( Math.
Abs
(dataPointPos[pointIndex - 1].Y - dataPointPos[pointIndex].Y ) < minDifference )
879
if (Math.
Abs
(first.X - second.X) > Math.
Abs
(first.Y - second.Y))
908
if (Math.
Abs
(first.X - second.X) > Math.
Abs
(first.Y - second.Y))
987
bool topBottomLine = (Math.
Abs
(pt2.Y - pt1.Y) > Math.
Abs
(pt2.X - pt1.X));
Common\ChartTypes\StockChart.cs (2)
1638
rect.Width = (float)Math.
Abs
(points[1].X - points[0].X);
1639
rect.Height = (float)Math.
Abs
(points[1].Y - points[0].Y);
Common\General\Axis.cs (15)
1972
transformedTitlePosition.Width = Math.
Abs
(transformedTitlePosition.Width);
1977
transformedTitlePosition.Height = Math.
Abs
(transformedTitlePosition.Height);
3721
_aveLabelFontSize = _minLabelFontSize + Math.
Abs
(size - _minLabelFontSize)/2f;
5527
width = (float)Math.Cos((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5528
width += (float)Math.Sin((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
5530
height = (float)Math.Sin((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5531
height += (float)Math.Cos((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
5535
width = (float)Math.Cos((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
5536
width += (float)Math.Sin((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5538
height = (float)Math.Sin((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
5539
height += (float)Math.Cos((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5757
width = (float)Math.Cos((90 - Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
5758
width += (float)Math.Cos((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5760
height = (float)Math.Sin((Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Height;
5761
height += (float)Math.Sin((90 - Math.
Abs
(angle)) / 180F * Math.PI) * axisLabelSize.Width;
Common\General\AxisScaleSegments.cs (2)
712
breakPosition.Height = (float)Math.
Abs
(breakPosition.Y - breakPosition.Height);
718
breakPosition.Width = (float)Math.
Abs
(breakPosition.X - breakPosition.Width);
Common\General\ChartArea.cs (2)
1708
if (Math.
Abs
(offset) > plottingRect.Width * 0.3f)
1736
if (Math.
Abs
(offset) > plottingRect.Height * 0.3f)
Common\General\ChartGraphics3D.cs (2)
432
if (Math.
Abs
(points[0].X - points[1].X) > Math.
Abs
(points[0].Y - points[1].Y))
Common\General\GridTickMarks.cs (10)
501
RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.
Abs
( second.X - first.X ) + 1, Math.
Abs
( second.Y - first.Y ) + 1 );
515
RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.
Abs
( second.X - first.X ) + 1, Math.
Abs
( second.Y - first.Y ) + 1 );
750
RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.
Abs
( second.X - first.X ) + 1, Math.
Abs
( second.Y - first.Y ) + 1 );
1498
if (Math.
Abs
(first.X - second.X) > Math.
Abs
(first.Y - second.Y))
1593
if (Math.
Abs
(first.X - second.X) > Math.
Abs
(first.Y - second.Y))
Common\General\Matrix3D.cs (13)
329
if( point.X - _translateX < 0F && Math.
Abs
( point.X - _translateX ) > minX )
330
minX = Math.
Abs
( point.X - _translateX );
332
if( point.X - _translateX >=0F && Math.
Abs
( point.X - _translateX ) > maxX )
333
maxX = Math.
Abs
( point.X - _translateX );
335
if( point.Y - _translateY < 0F && Math.
Abs
( point.Y - _translateY ) > minY )
336
minY = Math.
Abs
( point.Y - _translateY );
338
if( point.Y - _translateY >=0F && Math.
Abs
( point.Y - _translateY ) > maxY )
339
maxY = Math.
Abs
( point.Y - _translateY );
357
if( maxXScale < Math.
Abs
(point.X - _translateX) / width * 2 )
358
maxXScale = Math.
Abs
(point.X - _translateX) / width * 2;
361
if( maxYScale < Math.
Abs
(point.Y - _translateY) / height * 2 )
362
maxYScale = Math.
Abs
(point.Y - _translateY) / height * 2;
1113
if( Math.
Abs
( angleLeft - angleRight ) < 0.01 )
System.Workflow.ComponentModel (7)
AuthoringOM\Design\Connector.cs (7)
1128
Orientation orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
1145
Orientation orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
1192
Orientation orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
1197
orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
1213
Orientation orientation = (Math.
Abs
(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical;
1381
if (Math.
Abs
(slope1) == Math.
Abs
(slope2))