/////////////////////////////////////////////////////////////////////////// // Copyright (C) 2015 Wizardry and Steamworks - License: GNU GPLv3 // /////////////////////////////////////////////////////////////////////////// // the angle (in radians) o represents a rotation in the trigonometric // sense around the Ox axis where O represents the ellipse center vector wasRotatedEllipsePoint(float a, float b, float o) { float x = llPow(-1, 1 + (integer) llFrand(2)) * llFrand(a); float y = llPow(-1, 1 + (integer) llFrand(2)) * llFrand(b); if(llPow(x/a,2) + llPow(y/b,2) <= 1) return ; return wasRotatedEllipsePoint(a, b, o); }