Quaternion QML Type
쿼터니언을 위한 유틸리티 함수를 제공합니다. 더 보기...
Import Statement: | import QtQuick3D |
메서드
- quaternion fromAxesAndAngles(vector3d axis1, real angle1, vector3d axis2, real angle2)
- quaternion fromAxesAndAngles(vector3d axis1, real angle1, vector3d axis2, real angle2, vector3d axis3, real angle3)
- quaternion fromAxisAndAngle(vector3d axis, real angle)
- quaternion fromAxisAndAngle(real x, real y, real z, real angle)
- quaternion fromEulerAngles(vector3d eulerAngles)
- quaternion fromEulerAngles(real x, real y, real z)
- quaternion lookAt(vector3d sourcePosition, vector3d targetPosition, vector3d forwardDirection, vector3d upDirection)
상세 설명
Quaternion
객체는 유틸리티 함수가 있는 글로벌 객체입니다.
이 객체는 인스턴스화할 수 없으므로 사용하려면 글로벌 Quaternion
객체의 멤버를 직접 호출해야 합니다. 예를 들어
Node { rotation: Quaternion.fromAxisAndAngle(Qt.vector3d(1, 0, 0), 45) }
메서드 문서
quaternion fromAxesAndAngles(vector3d axis1, real angle1, vector3d axis2, real angle2) |
axis1, angle1, axis2, angle2 에서 쿼터니언을 생성합니다. 결과 쿼터니언을 반환합니다.
axis1, angle1, axis2, angle2, axis3, angle3 에서 쿼터니언을 생성합니다. 결과 쿼터니언을 반환합니다.
quaternion fromAxisAndAngle(vector3d axis, real angle) |
axis 와 angle 에서 쿼터니언을 생성합니다. 결과 쿼터니언을 반환합니다.
quaternion fromAxisAndAngle(real x, real y, real z, real angle) |
x, y, z, angle 에서 쿼터니언을 생성합니다. 결과 쿼터니언을 반환합니다.
quaternion fromEulerAngles(vector3d eulerAngles) |
eulerAngles 에서 쿼터니언을 생성합니다. 결과 쿼터니언을 반환합니다.
quaternion fromEulerAngles(real x, real y, real z) |
x, y, z 에서 쿼터니언을 생성합니다. 결과 쿼터니언을 반환합니다.
quaternion lookAt(vector3d sourcePosition, vector3d targetPosition, vector3d forwardDirection, vector3d upDirection) |
sourcePosition, targetPosition, forwardDirection, upDirection 에서 쿼터니언을 생성합니다. 특정 타겟을 가리키기 위한 회전 값을 가져오는 데 사용되며, 씬의 한 위치를 카메라로 가리키는 데 사용할 수 있습니다.
forwardDirection 기본값은 Qt.vector3d(0, 0, -1)
upDirection 기본값은 다음과 같습니다. Qt.vector3d(0, 1, 0)
결과 쿼터니언을 반환합니다.
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.