Package mgui.geometry.neuro.mesh
Class SampleRay
java.lang.Object
mgui.geometry.neuro.mesh.SampleRay
public class SampleRay
extends java.lang.Object
Represents a ray vector and regular samples along its trajectory (at a frequency of n / length).
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
addSampleValues(java.util.ArrayList<java.lang.Double> values)
java.lang.Double
getInterpolatedValue(double position)
java.lang.Double
getNearestSample(double position)
Vector3D
getRay()
java.lang.Double
getSample(int index)
java.util.ArrayList<java.lang.Double>
getSamples()
int
getSize()
void
resample(int n)
void
setSample(int index, double value)
void
setSamples(java.util.ArrayList<java.lang.Double> samples)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ray
-
samples
protected java.util.ArrayList<java.lang.Double> samples
-
-
Constructor Details
-
SampleRay
-
SampleRay
-
SampleRay
-
-
Method Details
-
getRay
-
addSampleValues
public void addSampleValues(java.util.ArrayList<java.lang.Double> values) -
getSamples
public java.util.ArrayList<java.lang.Double> getSamples() -
setSamples
public void setSamples(java.util.ArrayList<java.lang.Double> samples) -
getSample
public java.lang.Double getSample(int index) -
setSample
public void setSample(int index, double value) -
getSize
public int getSize() -
getNearestSample
public java.lang.Double getNearestSample(double position) -
getInterpolatedValue
public java.lang.Double getInterpolatedValue(double position) -
resample
public void resample(int n)
-