MatrixCopyToInt

Declaration: MatrixCopyToInt(InMat: TDouble2DArray; var TargetMat: TInt2DArray): integer;
Copies the contents of the matrix InMat to the matrix TargetMat. The matrix TargetMat is automatically resized to match the size of the matrix InMat. The values of the matrix InMat are rounded before copying them to TargetMat. All matrix values which are greater than MAXINT or less than -MAXINT-1 are automatically restricted to the corresponding limit. The function returns the following error codes:
 0 ... everything is OK
-1 ... the source matrix has zero size


Last Update: 2017-Dez-04