未验证 提交 f5e89a49 编写于 作者: Y Youssef Victor 提交者: GitHub

Update Matrix.cs (#2003)

上级 b2e573e1
......@@ -172,7 +172,7 @@ public void Prepend(Matrix matrix)
/// <summary>
/// Rotates this matrix about the origin
/// </summary>
/// <param name='angle'>The angle to rotate specifed in degrees</param>
/// <param name='angle'>The angle to rotate specified in degrees</param>
public void Rotate(double angle)
{
angle %= 360.0; // Doing the modulo before converting to radians reduces total error
......@@ -182,7 +182,7 @@ public void Rotate(double angle)
/// <summary>
/// Prepends a rotation about the origin to "this"
/// </summary>
/// <param name='angle'>The angle to rotate specifed in degrees</param>
/// <param name='angle'>The angle to rotate specified in degrees</param>
public void RotatePrepend(double angle)
{
angle %= 360.0; // Doing the modulo before converting to radians reduces total error
......@@ -192,7 +192,7 @@ public void RotatePrepend(double angle)
/// <summary>
/// Rotates this matrix about the given point
/// </summary>
/// <param name='angle'>The angle to rotate specifed in degrees</param>
/// <param name='angle'>The angle to rotate specified in degrees</param>
/// <param name='centerX'>The centerX of rotation</param>
/// <param name='centerY'>The centerY of rotation</param>
public void RotateAt(double angle, double centerX, double centerY)
......@@ -204,7 +204,7 @@ public void RotateAt(double angle, double centerX, double centerY)
/// <summary>
/// Prepends a rotation about the given point to "this"
/// </summary>
/// <param name='angle'>The angle to rotate specifed in degrees</param>
/// <param name='angle'>The angle to rotate specified in degrees</param>
/// <param name='centerX'>The centerX of rotation</param>
/// <param name='centerY'>The centerY of rotation</param>
public void RotateAtPrepend(double angle, double centerX, double centerY)
......@@ -767,7 +767,7 @@ internal void MultiplyPoint(ref double x, ref double y)
/// <summary>
/// Creates a rotation transformation about the given point
/// </summary>
/// <param name='angle'>The angle to rotate specifed in radians</param>
/// <param name='angle'>The angle to rotate specified in radians</param>
internal static Matrix CreateRotationRadians(double angle)
{
return CreateRotationRadians(angle, /* centerX = */ 0, /* centerY = */ 0);
......@@ -776,7 +776,7 @@ internal static Matrix CreateRotationRadians(double angle)
/// <summary>
/// Creates a rotation transformation about the given point
/// </summary>
/// <param name='angle'>The angle to rotate specifed in radians</param>
/// <param name='angle'>The angle to rotate specified in radians</param>
/// <param name='centerX'>The centerX of rotation</param>
/// <param name='centerY'>The centerY of rotation</param>
internal static Matrix CreateRotationRadians(double angle, double centerX, double centerY)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册