// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Round a corner with a circular fillet // Not compiled or tested in-world // Setup: Put in a spare owned prim. Set interior angle1..179 degrees and radius. Touch to print the plan privately. // Stop / restore: Remove/disable; calculations do not alter objects. // Notes: The angle is the interior angle between rays leaving the corner, not the change in travel heading. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Calculation only. float INTERIOR=100.0; float RADIUS=1.0; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; if(INTERIOR<=0.0||INTERIOR>=180.0||RADIUS<=0.0) { llOwnerSay("Invalid angle/radius."); return; } float half=INTERIOR*DEG_TO_RAD*0.5; llOwnerSay("Setback along each ray="+(string)(RADIUS/llTan(half))+" centre distance on bisector="+(string)(RADIUS/llSin(half))+" arc sweep degrees="+(string)(180.0-INTERIOR)); } }