/////////////////////////////////////////////////////////////////////////// // Copyright (C) 2016 Wizardry and Steamworks - License: GNU GPLv3 // /////////////////////////////////////////////////////////////////////////// vector wasUpperEllipsoid(float a, float b, float c) { float x = llPow(-1, 1 + (integer) llFrand(2)) * llFrand(a); float y = llPow(-1, 1 + (integer) llFrand(2)) * llFrand(b); float z = llFrand(c); if(llPow(x/a,2) + llPow(y/b,2) + llPow(z/c,2) <= 1) return ; return wasUpperEllipsoid(a, b, c); }