Universe.Physics.ConvexDecompositionDotNet.Quaternion.YawPitchRoll C# (CSharp) Méthode

YawPitchRoll() public static méthode

public static YawPitchRoll ( float yaw, float pitch, float roll ) : Quaternion
yaw float
pitch float
roll float
Résultat Quaternion
        public static Quaternion YawPitchRoll(float yaw, float pitch, float roll)
        {
            roll *= (3.14159264f / 180.0f);
            yaw *= (3.14159264f / 180.0f);
            pitch *= (3.14159264f / 180.0f);
            return new Quaternion(new float3(0.0f, 0.0f, 1.0f), yaw) * new Quaternion(new float3(1.0f, 0.0f, 0.0f), pitch) * new Quaternion(new float3(0.0f, 1.0f, 0.0f), roll);
        }