164 references to Abs
PresentationCore (11)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (5)
385return 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); 473return Math.Abs(to - from);
Shared\MS\Internal\FloatUtil.cs (6)
34float eps = ((float)Math.Abs(a) + (float)Math.Abs(b) + 10.0f) * FLT_EPSILON; 44return (float)Math.Abs(a-1.0f) < 10.0f * FLT_EPSILON; 52return (float)Math.Abs(a) < 10.0f * FLT_EPSILON; 61return Math.Abs(denominator) <= Math.Abs(numerator) * INVERSE_FLT_MAX_PRECISION;
System.Numerics (19)
System\Numerics\Matrix3x2.cs (1)
478if (Math.Abs(det) < float.Epsilon)
System\Numerics\Matrix4x4.cs (7)
277if (Math.Abs(dot) > minAngle) 284if (Math.Abs(dot) > minAngle) 286zaxis = (Math.Abs(rotateAxis.Z) > minAngle) ? new Vector3(1, 0, 0) : new Vector3(0, 0, -1); 1420if (Math.Abs(det) < float.Epsilon) 1598fAbsX = (float)Math.Abs(pVectorBasis[a]->X); 1599fAbsY = (float)Math.Abs(pVectorBasis[a]->Y); 1600fAbsZ = (float)Math.Abs(pVectorBasis[a]->Z);
System\Numerics\Plane.cs (2)
124if (Math.Abs(normalLengthSquared - 1.0f) < FLT_EPSILON) 138if (Math.Abs(f - 1.0f) < FLT_EPSILON)
System\Numerics\Vector2_Intrinsics.cs (2)
149return new Vector2(Math.Abs(value.X), Math.Abs(value.Y));
System\Numerics\Vector3_Intrinsics.cs (3)
168return new Vector3(Math.Abs(value.X), Math.Abs(value.Y), Math.Abs(value.Z));
System\Numerics\Vector4_Intrinsics.cs (4)
202return 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)
632if (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 ) 879if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 908if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 987bool 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)
1972transformedTitlePosition.Width = Math.Abs(transformedTitlePosition.Width); 1977transformedTitlePosition.Height = Math.Abs(transformedTitlePosition.Height); 3721 _aveLabelFontSize = _minLabelFontSize + Math.Abs(size - _minLabelFontSize)/2f; 5527width = (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5528width += (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5530height = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5531height += (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5535width = (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5536width += (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5538height = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5539height += (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5757width = (float)Math.Cos((90 - Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5758width += (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5760height = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5761height += (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)
1708if (Math.Abs(offset) > plottingRect.Width * 0.3f) 1736if (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)
432if (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 ); 1498if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 1593if (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)
783if (Math.Abs(tabOffset) < tabDistance) {
winforms\Managed\System\WinForms\DataGridViewMethods.cs (1)
1212weightDiscrepancy = 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)
632if (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 ) 879if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 908if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 987bool 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)
1972transformedTitlePosition.Width = Math.Abs(transformedTitlePosition.Width); 1977transformedTitlePosition.Height = Math.Abs(transformedTitlePosition.Height); 3721 _aveLabelFontSize = _minLabelFontSize + Math.Abs(size - _minLabelFontSize)/2f; 5527width = (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5528width += (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5530height = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5531height += (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5535width = (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5536width += (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5538height = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5539height += (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5757width = (float)Math.Cos((90 - Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5758width += (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5760height = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Height; 5761height += (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)
1708if (Math.Abs(offset) > plottingRect.Width * 0.3f) 1736if (Math.Abs(offset) > plottingRect.Height * 0.3f)
Common\General\ChartGraphics3D.cs (2)
432if (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 ); 1498if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 1593if (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)
1128Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical; 1145Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical; 1192Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical; 1197orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical; 1213Orientation orientation = (Math.Abs(slopeOfLine) < 1) ? Orientation.Horizontal : Orientation.Vertical; 1381if (Math.Abs(slope1) == Math.Abs(slope2))