Lines Matching refs:destination
149 * Copy the {@link Rational} elements in row-major order from this matrix into the destination.
151 * @param destination
157 * If {@code destination} was {@code null}
159 * If there's not enough room to write the elements at the specified destination and
162 public void copyElements(Rational[] destination, int offset) {
164 checkNotNull(destination, "destination must not be null");
165 if (destination.length - offset < COUNT) {
166 throw new ArrayIndexOutOfBoundsException("destination too small to fit elements");
173 destination[i + offset] = new Rational(numerator, denominator);
178 * Copy the {@link Rational} elements in row-major order from this matrix into the destination.
184 * @param destination
190 * If {@code destination} was {@code null}
192 * If there's not enough room to write the elements at the specified destination and
197 public void copyElements(int[] destination, int offset) {
199 checkNotNull(destination, "destination must not be null");
200 if (destination.length - offset < COUNT_INT) {
201 throw new ArrayIndexOutOfBoundsException("destination too small to fit elements");
206 destination[i + offset] = mElements[i];