public double[] toArray (MatrixType type)

Returns an array containing the flattened transformation matrix.

Parameters:
type    matrix type to be filled in the array

Returns:  an array containing the elements of the requested matrix type representing this transform

Exceptions:
IllegalArgumentException    if a 2D matrix type is requested for a 3D transform
NullPointerException    if the specified type is null

Since:  JavaFX 8.0