// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Volume of four planned vertices // Not compiled or tested in-world // Setup: Use a spare owned prim. Set A/B/C/D in the same frame. Touch for owner-only results. // Stop / restore: Disable/remove. No scene properties change. // Notes: Signed volume follows vertex order. A near-zero result indicates coplanar or degenerate input. // License: see LICENSE in this distribution. // Original Incoprea. MIT. vector A=<0.0,0.0,0.0>; vector B=<4.0,0.0,0.0>; vector C=<0.0,3.0,0.0>; vector D=<0.0,0.0,6.0>; default { touch_start(integer detectedCount) { if(llDetectedKey(0)!=llGetOwner())return; float signedVolume=((B-A)*((C-A)%(D-A)))/6.0; llOwnerSay("Signed volume="+(string)signedVolume+"; absolute volume="+(string)llFabs(signedVolume)); } }