jumbo.euclid
Class Real2Array

java.lang.Object
  |
  +--jumbo.euclid.Status
        |
        +--jumbo.euclid.Real2Array

public class Real2Array
extends Status

Real2Array is NOT a Vector of Real2s, but a container for a 2-D array with a variety of ways of managing the data including RealArrays for the x and y arrays, and also an array of Real2s The latter is only stored if required, and then is cached.


Constructor Summary
Real2Array()
          default constructor gives an array of 0 points
Real2Array(RealArray x, RealArray y)
          make an Real2_Array from 2 RealVec's; takes a copy
 
Method Summary
 Real2 elementAt(int elem)
           
 Real2Range getRange2()
          get max and min value of Real2_Array
 int size()
           
 
Methods inherited from class jumbo.euclid.Status
NYI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Real2Array

public Real2Array()
default constructor gives an array of 0 points

Real2Array

public Real2Array(RealArray x,
                  RealArray y)
           throws UnequalArraysException
make an Real2_Array from 2 RealVec's; takes a copy
Throws:
UnequalArraysException - x and x must have number of elements
Method Detail

getRange2

public Real2Range getRange2()
                     throws UninitialisedException
get max and min value of Real2_Array
Throws:
UninitialisedException - no values in array, so meaningless range

size

public int size()

elementAt

public Real2 elementAt(int elem)