public class Square2DWaveform extends Object
| Constructor and Description |
|---|
Square2DWaveform()
Creates sine wave of 100 samples, with period of 1 second, wavelength of
100 samples along the x axis, updating at 10 Hz.
|
Square2DWaveform(Double periodInSeconds,
Double wavelengthInSamples,
Double updateRateInSeconds)
Creates sine wave of 100 samples, with given period and given wavelength of
100 samples along the x axis, updating at given rate.
|
Square2DWaveform(Double periodInSeconds,
Double wavelengthInSamples,
Double nSamples,
Double updateRateInSeconds)
Creates sine wave of 100 samples, with given period and given wavelength of
given number of samples along the x axis, updating at given rate.
|
Square2DWaveform(Double periodInSeconds,
Double wavelengthInSamples,
Double angle,
Double xSamples,
Double ySamples,
Double updateRateInSeconds)
Creates sine wave with given parameters.
|
| Modifier and Type | Method and Description |
|---|---|
TimeDuration |
getTimeBetweenSamples()
Returns the time between each sample.
|
public Square2DWaveform()
public Square2DWaveform(Double periodInSeconds, Double wavelengthInSamples, Double updateRateInSeconds)
periodInSeconds - the period measured in secondswavelengthInSamples - the wavelength measured in samplesupdateRateInSeconds - the update rate in secondspublic Square2DWaveform(Double periodInSeconds, Double wavelengthInSamples, Double nSamples, Double updateRateInSeconds)
periodInSeconds - the period measured in secondswavelengthInSamples - the wavelength measured in samplesnSamples - the number of samplesupdateRateInSeconds - the update rate in secondspublic Square2DWaveform(Double periodInSeconds, Double wavelengthInSamples, Double angle, Double xSamples, Double ySamples, Double updateRateInSeconds)
periodInSeconds - the period measured in secondswavelengthInSamples - the wavelength measured in samplesangle - the direction of propagation for the wavexSamples - number of samples on the x directionySamples - number of samples on the y directionupdateRateInSeconds - the update rate in secondspublic TimeDuration getTimeBetweenSamples()
Copyright © 2015. All rights reserved.