Beispiel #1
0
    public static LQuaternion FromToRotation(LVector3 fromDirection, LVector3 toDirection)
    {
        LFloat   angle = LVector3.Angle(fromDirection, toDirection);
        LVector3 axis  = fromDirection.Cross(toDirection);

        return(AngleAxis(angle, axis));
    }