Affine transform effect

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
kk

Affine transform effect

Post by kk » Tue Jan 15, 2002 6:02 pm

Does anyone think it is a good idea adding affine transform effect to JFreechart? If you need sample code, I can provide it to you.

David Gilbert

RE: Affine transform effect

Post by David Gilbert » Wed Jan 16, 2002 9:50 am

I'm not sure what you mean by that...can you elaborate?

Thanks,

DG.

kk

RE: Affine transform effect

Post by kk » Thu Jan 17, 2002 12:24 am

Here is doc about class AffineTransform in Java,

The AffineTransform class represents a 2D affine transform
that performs a linear mapping from 2D coordinates to other 2D
coordinates that preserves the "straightness" and
"parallelness" of lines. Affine transformations can be constructed
using sequences of translations, scales, flips, rotations, and shears.
Such a coordinate transformation can be represented by a 3 row by
3 column matrix with an implied last row of [ 0 0 1 ]. This matrix
transforms source coordinates (x, y) into
destination coordinates (x', y') by considering
them to be a column vector and multiplying the coordinate vector
by the matrix according to the following process:
[ x'] [ m00 m01 m02 ] [ x ] [ m00x + m01y + m02 ]
[ y'] = [ m10 m11 m12 ] [ y ] = [ m10x + m11y + m12 ]
[ 1 ] [ 0 0 1 ] [ 1 ] [ 1 ]

Locked