New rendering testing
James Hurley
jhurley0305 at sbcglobal.net
Wed Oct 19 10:02:46 EDT 2011
>
> Message: 6
> Date: Tue, 18 Oct 2011 15:28:04 -0400
> From: Colin Holgate <coiin at verizon.net>
> To: How to use LiveCode <use-livecode at lists.runrev.com>
> Subject: Re: New rendering testing
> Message-ID: <2EF0A610-8848-4191-B934-9C4A3C51789B at verizon.net>
> Content-Type: text/plain; charset=us-ascii
>
> It doesn't do very much, it gets stuck at line 47 quickly:
>
> put asin(sinGamma) into gamma
>
>
> On Oct 18, 2011, at 2:49 PM, James Hurley wrote:
>
>> go url "http://jamesphurley.com/jhurleyFolder/NineBallWithProjections.rev"
>
>
Colin,
There is a quirk in Mac OS. It shows a value of the sinGamma of 1 and yet reports a domain error for asin(sinGamma). (The hypotenuse must be greater than or equal to either of the other two sides.) Not on the PC however as reported by Alejandro.
Two work arounds:
put trunc(100000000000000*sinGamma)/100000000000000 into sinGamma
if abs(sinGamma) >1 then
choose the browse tool
return ""
else
put asin(sinGamma) into gamma
end if
That gets rid of the possible round up error and cuts off any digits after the 14th decimal place.
Or:
Just replace the > operator with >= . Apparently this operator is not so sensitive as the asin operator.
if abs(sinGamma) > 1 then -- Change this to >= 1
choose the browse tool
return ""
else
put asin(sinGamma) into gamma
end if
There are other quirks as well but not worth fixing. It is no longer a game since the element of chance is gone.
Jim Hurley
More information about the use-livecode
mailing list