public static TSQuaternion Euler(TSVector eulerAngles) { return(Euler(eulerAngles.x, eulerAngles.y, eulerAngles.z)); }
public void SetFromToRotation(TSVector fromDirection, TSVector toDirection) { TSQuaternion targetRotation = TSQuaternion.FromToRotation(fromDirection, toDirection); this.Set(targetRotation.x, targetRotation.y, targetRotation.z, targetRotation.w); }
public static TSQuaternion LookRotation(TSVector forward, TSVector upwards) { return(CreateFromMatrix(TSMatrix.LookAt(forward, upwards))); }