MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / RotationY

Method RotationY

Source/Engine/Core/Math/Matrix.cs:2419–2428  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

RotationYFunction · 0.85
CosMethod · 0.45
SinMethod · 0.45

Tested by

no test coverage detected