Example #1
0
 public static TSQuaternion Euler(TSVector eulerAngles)
 {
     return(Euler(eulerAngles.x, eulerAngles.y, eulerAngles.z));
 }
Example #2
0
        public void SetFromToRotation(TSVector fromDirection, TSVector toDirection)
        {
            TSQuaternion targetRotation = TSQuaternion.FromToRotation(fromDirection, toDirection);

            this.Set(targetRotation.x, targetRotation.y, targetRotation.z, targetRotation.w);
        }
Example #3
0
 public static TSQuaternion LookRotation(TSVector forward, TSVector upwards)
 {
     return(CreateFromMatrix(TSMatrix.LookAt(forward, upwards)));
 }