LSL Wiki Mirror 10-5-2006: llAngleBetween

HomePage :: PageIndex :: RecentChanges :: RecentlyCommented :: UserSettings ::
float llAngleBetween(rotation a, rotation b);

Returns angle, in radians, between rotation a and rotation b.

float AngleBetween(rotation a, rotation b)
{
    return llAcos(a.x * b.x + a.y * b.y + a.z * b.z + a.s * b.s) * 2;
}


Functions | Rotation
There is no comment on this page. [Display comments/form]