Affine transforms - matrix algebra
Jim Graham
james.graham at oracle.com
Tue Aug 14 11:52:10 PDT 2012
Yes. I've provided those in other systems I've worked on, but in
retrospect I wasn't sure if they ever got used. Still, it's a very
small API price to pay for some completeness...
...jim
On 8/14/2012 8:30 AM, Pavel Safrata wrote:
> For completeness I would add
>
> public Point3D inverseDeltaTransform(Point3D point)
> public Point2D inverseDeltaTransform(Point2D point)
>
> Pavel
>
>> public Point3D transform(Point3D point)
>> // Transforms the point
>> public Point2D transform(Point2D point)
>> // throws IllegalArgument for 3D transform
>> public Bounds transform(Bounds bounds)
>> // Transforms the bounds
>> public void transform2D(double[] srcPts, int srcOffset, double[]
>> dstPts, int dstOffset, int numPts)
>> // similar to J2D
>> public void transform3D(double[] srcPts, int srcOffset, double[]
>> dstPts, int dstOffset, int numPts)
>> // similar to the above but with tree coordinates per point
>> public inverseTransform* // 6 methods
>> // one counterpart for each transform*
>> public Point3D deltaTransform(Point3D point)
>> public Point2D deltaTransform(Point2D point)
>> // transformation without translation (transformation of a vector)
>
More information about the openjfx-dev
mailing list