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

    Fields
    Modifier and Type Field Description
    protected Vector3D ray  
    protected java.util.ArrayList<java.lang.Double> samples  
  • Constructor Summary

    Constructors
    Constructor Description
    SampleRay​(SampleRay ray)  
    SampleRay​(Vector3D ray)  
    SampleRay​(Vector3D ray, java.util.ArrayList<java.lang.Double> samples)  
  • 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

      protected Vector3D ray
    • samples

      protected java.util.ArrayList<java.lang.Double> samples
  • Constructor Details

    • SampleRay

      public SampleRay​(Vector3D ray)
    • SampleRay

      public SampleRay​(Vector3D ray, java.util.ArrayList<java.lang.Double> samples)
    • SampleRay

      public SampleRay​(SampleRay ray)
  • Method Details

    • getRay

      public Vector3D 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)