127 references to Cos
mscorlib (1)
system\globalization\CalendricalCalculationsHelper.cs (1)
53return Math.Cos(RadiansFromDegrees(degree));
PresentationCore (5)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
1424M00 = M11 = Math.Cos(dAngle);
Core\CSharp\System\Windows\Media\Effects\DropShadowEffect.cs (1)
50double offsetX = depth * Math.Cos(direction);
Core\CSharp\System\Windows\Media\LinearGradientBrush.cs (1)
235return (new Point(System.Math.Cos(angle), System.Math.Sin(angle)));
Core\CSharp\System\Windows\Media3D\Quaternion.cs (2)
102_w = Math.Cos(0.5 * angleInRadians); 569scaleFrom = Math.Cos(theta);
System.Numerics (20)
System\Numerics\Complex.cs (7)
84return new Complex((magnitude * Math.Cos(phase)), (magnitude * Math.Sin(phase))); 290return new Complex(Math.Sin(a) * Math.Cosh(b), Math.Cos(a) * Math.Sinh(b)); 298return new Complex(Math.Sinh(a) * Math.Cos(b), Math.Cosh(a) * Math.Sin(b)); 309return new Complex(Math.Cos(a) * Math.Cosh(b), - (Math.Sin(a) * Math.Sinh(b))); 317return new Complex(Math.Cosh(a) * Math.Cos(b), Math.Sinh(a) * Math.Sin(b)); 360Double result_re = temp_factor * Math.Cos(value.m_imaginary); 393return new Complex(t * Math.Cos(newRho), t * Math.Sin(newRho));
System\Numerics\Matrix3x2.cs (2)
362c = (float)Math.Cos(radians); 422c = (float)Math.Cos(radians);
System\Numerics\Matrix4x4.cs (7)
585float c = (float)Math.Cos(radians); 622float c = (float)Math.Cos(radians); 661float c = (float)Math.Cos(radians); 698float c = (float)Math.Cos(radians); 737float c = (float)Math.Cos(radians); 774float c = (float)Math.Cos(radians); 838float sa = (float)Math.Sin(angle), ca = (float)Math.Cos(angle);
System\Numerics\Quaternion.cs (4)
169float c = (float)Math.Cos(halfAngle); 194cr = (float)Math.Cos(halfRoll); 198cp = (float)Math.Cos(halfPitch); 202cy = (float)Math.Cos(halfYaw);
System.Web.DataVisualization (50)
Common\ChartTypes\PieChart.cs (32)
871 double xComponent = Math.Cos( midAngle * Math.PI / 180 ) * rectangle.Width / 10; 1034 point.positionRel.X = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * rectangle.Width * expShift / 2 + middlePoint.X; 1242 x = (float)Math.Cos( (startAngle + sweepAngle / 2) * Math.PI / 180 ) * width + middlePoint.X; 1309 float x1 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * expShift / 2 + middlePoint.X; 1312 float x2 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X; 1344x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1361x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1720 x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1724 x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 2596 double xComponent = Math.Cos( midAngle * Math.PI / 180 ) * rectangle.Width / 10; 3080 rectangle.X + (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3086 rectangle.X + (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3092 rectangle.X + (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3098 rectangle.X + (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3104 rectangle.X + (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3110 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3116 rectangle.X + (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3122 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3140 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3157 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * sizeOut / 2F + rectangle.Width / 2F, 3165 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * ( 1 + doughnutRadius ) / 4F + rectangle.Width / 2F, 3172 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * 0.5F / 2F + rectangle.Width / 2F, 3194 rectangle.X + (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3200 rectangle.X + (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3206 rectangle.X + (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3212 rectangle.X + (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3218 rectangle.X + (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3224 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3230 rectangle.X + (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3236 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 4963 if( Math.Cos( angle ) == 0 ) 4969 correct = (float)(_innerPlotPosition.Width * 0.4 - _innerPlotPosition.Width * 0.4 / Math.Cos( angle ));
Common\General\Axis.cs (10)
2390dX = (float)(offset * Math.Cos(angleAxis)); 2395dX = (float)(offset * Math.Cos(angleAxis)); 2400dY = (float)(offset * Math.Cos(angleAxis)); 2414dY = (float)(offset * Math.Cos(angleAxis)); 5527width = (float)Math.Cos((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; 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;
Common\General\ChartArea.cs (1)
2710 float width = (float)Math.Cos(textAngle/180F*Math.PI) * textSize.Width;
Common\General\ChartGraphics.cs (1)
2073float sizeChange = truncateRect.Width / (float)Math.Cos(Math.Abs(angle) / 180F * Math.PI);
Common\General\Matrix3D.cs (6)
728 rotationMatrix[1][1] = (float)Math.Cos( angle ); 731 rotationMatrix[2][2] = (float)Math.Cos( angle ); 736 rotationMatrix[0][0] = (float)Math.Cos( angle ); 739 rotationMatrix[2][2] = (float)Math.Cos( angle ); 744 rotationMatrix[0][0] = (float)Math.Cos( angle ); 747 rotationMatrix[1][1] = (float)Math.Cos( angle );
System.Windows.Forms.DataVisualization (50)
Common\ChartTypes\PieChart.cs (32)
871 double xComponent = Math.Cos( midAngle * Math.PI / 180 ) * rectangle.Width / 10; 1034 point.positionRel.X = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * rectangle.Width * expShift / 2 + middlePoint.X; 1242 x = (float)Math.Cos( (startAngle + sweepAngle / 2) * Math.PI / 180 ) * width + middlePoint.X; 1309 float x1 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * expShift / 2 + middlePoint.X; 1312 float x2 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X; 1344x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1361x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1720 x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1724 x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 2596 double xComponent = Math.Cos( midAngle * Math.PI / 180 ) * rectangle.Width / 10; 3080 rectangle.X + (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3086 rectangle.X + (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3092 rectangle.X + (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3098 rectangle.X + (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3104 rectangle.X + (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3110 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3116 rectangle.X + (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3122 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3140 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F, 3157 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * sizeOut / 2F + rectangle.Width / 2F, 3165 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * ( 1 + doughnutRadius ) / 4F + rectangle.Width / 2F, 3172 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * 0.5F / 2F + rectangle.Width / 2F, 3194 rectangle.X + (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3200 rectangle.X + (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3206 rectangle.X + (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3212 rectangle.X + (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3218 rectangle.X + (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3224 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3230 rectangle.X + (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 3236 rectangle.X + (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F, 4963 if( Math.Cos( angle ) == 0 ) 4969 correct = (float)(_innerPlotPosition.Width * 0.4 - _innerPlotPosition.Width * 0.4 / Math.Cos( angle ));
Common\General\Axis.cs (10)
2390dX = (float)(offset * Math.Cos(angleAxis)); 2395dX = (float)(offset * Math.Cos(angleAxis)); 2400dY = (float)(offset * Math.Cos(angleAxis)); 2414dY = (float)(offset * Math.Cos(angleAxis)); 5527width = (float)Math.Cos((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; 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;
Common\General\ChartArea.cs (1)
2710 float width = (float)Math.Cos(textAngle/180F*Math.PI) * textSize.Width;
Common\General\ChartGraphics.cs (1)
2073float sizeChange = truncateRect.Width / (float)Math.Cos(Math.Abs(angle) / 180F * Math.PI);
Common\General\Matrix3D.cs (6)
728 rotationMatrix[1][1] = (float)Math.Cos( angle ); 731 rotationMatrix[2][2] = (float)Math.Cos( angle ); 736 rotationMatrix[0][0] = (float)Math.Cos( angle ); 739 rotationMatrix[2][2] = (float)Math.Cos( angle ); 744 rotationMatrix[0][0] = (float)Math.Cos( angle ); 747 rotationMatrix[1][1] = (float)Math.Cos( angle );
WindowsBase (1)
Base\System\Windows\Media\Matrix.cs (1)
789double cos = Math.Cos(angle);