繞固定 xyz 軸旋轉

struct mat3 { float3 x; float3 y; float3 z; }; float3 rotation(float3 mp, float3 pos) { float s = 0.0f; float c = 0.0f; struct mat3 rotX; s = sin(mp.x); c = cos(mp.x); rotX.x = (float3)(1
相關文章
相關標籤/搜索