[...]

The Vector/Point interface does not allow access to its components, thus
any algorithm that needs access to them either has to cast, or
explicitly specify the type.

[...]


Ideally, the Vector interface would have a method

double getComponent(int dimension)

or

double[] getData()

to provide access to the components of the vector and I would like to
discuss this for 4.0 considering the other uses of Vector.

[...]

How would an algorithm know how to deal with the returned value
if it does not know the actual type (i.e. the meaning of the
components)?


Gilles


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to