LlRotBetween/ja
From Second Life Wiki
警告
start * llRotBetween(start, end) == endはstartとendが両方とも0ではない同等の規模の場合のみtrueです。(回避策はllRotBetween#Notesを参照します)
例
llRotBetween(<1.0, 0.0, 0.0>, <0.0, -1.0, 0.0>) // will return <0.00000, 0.00000, -0.70711, 0.70711> (which represents -45 degrees on the z axis) llRotBetween(<0.0, 0.0, 0.0>, <0.0, -1.0, 0.0>) // will return <0.00000, 0.00000, 0.00000, 1.00000> (which represents a zero angle on all axis) // because <0.0, 0.0, 0.0> does not convey a direction.
ノート
この関数はクオータニオンの規模に適応し、つまりstart * llRotBetween(start, end) == endはどちらも0でない限りはtrueです。これらは同じ規模にすべきではありません。
rotation RotBetween(vector start, vector end) //adjusts quaternion magnitude so (start * return == end) {//Authors note: I have never had a use for this but it's good to know how to do it if I did. rotation rot = llRotBetween(start, end); if(start) { if(end) { float d = llSqrt(llVecMag(end) / llVecMag(start)); return <rot.x * d, rot.y * d, rot.z * d, rot.s * d>; } } return rot; }//Strife Onizuka

