patch for Angle.java

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

patch for Angle.java

mbedward
Hi Martin and everyone,

Angle.normalizePositive doesn't give the advertised results if the
input is greater than 2PI.  I've attached a patch based on cvs code.

cheers
Michael

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel

anglefix.patch (684 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: patch for Angle.java

mbedward
oops - sorry, here is the patch again without the spurious line at the top...

2009/3/8 Michael Bedward <[hidden email]>:
> Hi Martin and everyone,
>
> Angle.normalizePositive doesn't give the advertised results if the
> input is greater than 2PI.  I've attached a patch based on cvs code.
>
> cheers
> Michael
>

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel

anglefix.patch (636 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Re: patch for Angle.java

Martin Davis
Thanks, Michael.  I've added this to JTS 1.11.   This is crying out for
a unit test - so I've added one of those as well.

Michael Bedward wrote:

> oops - sorry, here is the patch again without the spurious line at the top...
>
> 2009/3/8 Michael Bedward <[hidden email]>:
>  
>> Hi Martin and everyone,
>>
>> Angle.normalizePositive doesn't give the advertised results if the
>> input is greater than 2PI.  I've attached a patch based on cvs code.
>>
>> cheers
>> Michael
>>
>>    
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> jts-devel mailing list
>> [hidden email]
>> http://lists.refractions.net/mailman/listinfo/jts-devel
>>    

--
Martin Davis
Senior Technical Architect
Refractions Research, Inc.
(250) 383-3022

_______________________________________________
jts-devel mailing list
[hidden email]
http://lists.refractions.net/mailman/listinfo/jts-devel
Loading...