Class ValueVector
- java.lang.Object
-
- com.macrofocus.high_d.parallelcoordinates.geometry.curve.ValueVector
-
public class ValueVector extends java.lang.Object
A value-vector is a sequence of values that some curves use to define themselves, sometimes called a knot-vector or a weight-vector. The values are stored using an array.
-
-
Constructor Summary
Constructors Constructor Description ValueVector(double[] value, int size)
Creates a ValueVector using the specified array and initial size.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(double d)
Adds a value to the value array at index location size.double
get(int index)
Returns the value at the specified index.void
set(double d, int index)
Sets the value at the specified index.int
size()
Returns the number of values in the value array.
-
-
-
Method Detail
-
size
public int size()
Returns the number of values in the value array.
-
get
public double get(int index)
Returns the value at the specified index.
-
set
public void set(double d, int index)
Sets the value at the specified index.
-
add
public void add(double d)
Adds a value to the value array at index location size.
-
-