示例#1
0
 public static TSQuaternion Euler(TSVector eulerAngles)
 {
     return(Euler(eulerAngles.x, eulerAngles.y, eulerAngles.z));
 }
示例#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);
        }
示例#3
0
 public static TSQuaternion LookRotation(TSVector forward, TSVector upwards)
 {
     return(CreateFromMatrix(TSMatrix.LookAt(forward, upwards)));
 }