Affine transforms - matrix algebra

Jim Graham james.graham at oracle.com
Mon Aug 13 16:50:55 PDT 2012


On 8/13/2012 8:19 AM, Pavel Safrata wrote:
>> On Point3D class:
>> public double getDistance(Point3D point)
>> // Gets distance from the given point
>
> Oh, I've just realized that we already have
> distance(Point3D)
> ...
>
>> public Point3D getCenter(Point3D)
>> // Gets center between the two points
>> public double getAngle(Point3D)
>> // Gets angle between the two points when observed from the origin
>> // (angle between vectors)
>> public double getLength()
>> // Gets distance from the origin (lenght of a vector)
>> ? should it be named getDistance() not to look that weird on Point?
>
> .. so maybe we should rather have center(Point3D), angle(Point3D),
> length()/distance()
> Pavel

Sounds reasonable...

		...jim


More information about the openjfx-dev mailing list