All Downloads are FREE. Search and download functionalities are using the official Maven repository.

matlabcontrol.link.MatlabInt64 Maven / Gradle / Ivy

There is a newer version: 4.6.0
Show newest version
/*
 * Code licensed under new-style BSD (see LICENSE).
 * All code up to tags/original: Copyright (c) 2013, Joshua Kaplan
 * All code after tags/original: Copyright (c) 2016, DiffPlug
 */
package matlabcontrol.link;

/**
 * MATLAB {@code int64} with real and imaginary components.
 * 
 * @since 4.2.0
 * @author Joshua Kaplan
 */
public final class MatlabInt64 extends MatlabNumber {
	private static final Long DEFAULT = 0L;

	public MatlabInt64(long real, long imag) {
		super(DEFAULT, real, imag);
	}

	/**
	 * Returns the real value.
	 * 
	 * @return 
	 */
	public long toReal() {
		return _real;
	}

	/**
	 * Returns the imaginary value.
	 * 
	 * @return 
	 */
	public long toImaginary() {
		return _imag;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy