36 qdecomp->scale_x = 1.f;
37 qdecomp->scale_y = 1.f;
38 qdecomp->scale_z = 1.f;
39 qdecomp->skew_xy = 0.f;
40 qdecomp->skew_xz = 0.f;
41 qdecomp->skew_yz = 0.f;
42 qdecomp->shift_x = 0.f;
43 qdecomp->shift_y = 0.f;
44 qdecomp->shift_z = 0.f;
45 qdecomp->quaternion_r = 1.f;
46 qdecomp->quaternion_i = 0.f;
47 qdecomp->quaternion_j = 0.f;
48 qdecomp->quaternion_k = 0.f;
49 qdecomp->translation_x = 0.f;
50 qdecomp->translation_y = 0.f;
51 qdecomp->translation_z = 0.f;
55 struct RTCQuaternionDecomposition* qdecomp,
56 float r,
float i,
float j,
float k)
58 qdecomp->quaternion_r =
r;
59 qdecomp->quaternion_i = i;
60 qdecomp->quaternion_j =
j;
61 qdecomp->quaternion_k = k;
65 struct RTCQuaternionDecomposition* qdecomp,
66 float scale_x,
float scale_y,
float scale_z)
68 qdecomp->scale_x = scale_x;
69 qdecomp->scale_y = scale_y;
70 qdecomp->scale_z = scale_z;
74 struct RTCQuaternionDecomposition* qdecomp,
75 float skew_xy,
float skew_xz,
float skew_yz)
77 qdecomp->skew_xy = skew_xy;
78 qdecomp->skew_xz = skew_xz;
79 qdecomp->skew_yz = skew_yz;
83 struct RTCQuaternionDecomposition* qdecomp,
84 float shift_x,
float shift_y,
float shift_z)
86 qdecomp->shift_x = shift_x;
87 qdecomp->shift_y = shift_y;
88 qdecomp->shift_z = shift_z;
92 struct RTCQuaternionDecomposition* qdecomp,
93 float translation_x,
float translation_y,
float translation_z)
95 qdecomp->translation_x = translation_x;
96 qdecomp->translation_y = translation_y;
97 qdecomp->translation_z = translation_z;
RTC_FORCEINLINE void rtcQuaternionDecompositionSetScale(struct RTCQuaternionDecomposition *qdecomp, float scale_x, float scale_y, float scale_z)
RTC_FORCEINLINE void rtcInitQuaternionDecomposition(struct RTCQuaternionDecomposition *qdecomp)
RTC_FORCEINLINE void rtcQuaternionDecompositionSetTranslation(struct RTCQuaternionDecomposition *qdecomp, float translation_x, float translation_y, float translation_z)
RTC_FORCEINLINE void rtcQuaternionDecompositionSetSkew(struct RTCQuaternionDecomposition *qdecomp, float skew_xy, float skew_xz, float skew_yz)
RTC_NAMESPACE_BEGIN struct RTC_ALIGN(16) RTCQuaternionDecomposition
#define RTC_NAMESPACE_END
RTC_FORCEINLINE void rtcQuaternionDecompositionSetQuaternion(struct RTCQuaternionDecomposition *qdecomp, float r, float i, float j, float k)
#define RTC_NAMESPACE_BEGIN
RTC_FORCEINLINE void rtcQuaternionDecompositionSetShift(struct RTCQuaternionDecomposition *qdecomp, float shift_x, float shift_y, float shift_z)