[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug awt/26955] New: Point2D.distance() broken
From: |
jimmy at ghs dot com |
Subject: |
[Bug awt/26955] New: Point2D.distance() broken |
Date: |
30 Mar 2006 22:09:31 -0000 |
The whole series of distance() and distanceSq() methods in the Point2D class
are wrong. For example:
public double distance(double x, double y)
{
return distance(getX(), x, getY(), y);
}
should be written as:
public double distance(double x, double y)
{
return distance(getX(), getY(), x, y);
}
since the distance method which takes 4 doubles requires the arguments in
x,y,x,y order not x,x,y,y.
--
Summary: Point2D.distance() broken
Product: classpath
Version: 0.90
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: awt
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jimmy at ghs dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26955
- [Bug awt/26955] New: Point2D.distance() broken,
jimmy at ghs dot com <=