Creates a matrix that rotates around the y-axis. Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin. When the method completes, contains the created rotation matrix.
(float angle, out Matrix result)
| 2417 | /// </param> |
| 2418 | /// <param name="result">When the method completes, contains the created rotation matrix.</param> |
| 2419 | public static void RotationY(float angle, out Matrix result) |
| 2420 | { |
| 2421 | var cos = (float)Math.Cos(angle); |
| 2422 | var sin = (float)Math.Sin(angle); |
| 2423 | result = Identity; |
| 2424 | result.M11 = cos; |
| 2425 | result.M13 = -sin; |
| 2426 | result.M31 = sin; |
| 2427 | result.M33 = cos; |
| 2428 | } |
| 2429 | |
| 2430 | /// <summary> |
| 2431 | /// Creates a matrix that rotates around the y-axis. |