com.partnersoft.data
Class DoubleBuffer
java.lang.Object
com.partnersoft.data.DataBuffer
com.partnersoft.data.DoubleBuffer
- All Implemented Interfaces:
- java.io.Serializable
public class DoubleBuffer
- extends DataBuffer
A fast double array buffer with public access to contents. Intended for fast
and unsafe operations.
- Author:
- Paul Reavis Copyright 2001 Partner Software, Inc.
- See Also:
- Serialized Form
|
Field Summary |
double[] |
array
|
|
Method Summary |
void |
add(double... whats)
|
void |
add(double what)
|
java.lang.Object |
clone()
|
void |
newArray(int size)
Allocates a new, empty array of the given size and assign it to the
arrayObject property. |
void |
pack()
|
void |
simplifyWithMinimumDistance(double granularity)
Simplify using a minimum-point-distance granularity. |
java.lang.String |
valuesToString()
|
| Methods inherited from class com.partnersoft.data.DataBuffer |
append, clear, copy, copyTo, getSize, insert, isEmpty, makeRoomFor, makeRoomFor, remove, setToMatch, subsection, tidy, toString |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
array
public double[] array
DoubleBuffer
public DoubleBuffer()
- Creates an empty double buffer. buffer is left null!
DoubleBuffer
public DoubleBuffer(int size)
- Creates a double buffer of the given size.
DoubleBuffer
public DoubleBuffer(FloatBuffer floats)
DoubleBuffer
public DoubleBuffer(double... values)
newArray
public void newArray(int size)
- Description copied from class:
DataBuffer
- Allocates a new, empty array of the given size and assign it to the
arrayObject property. It is assumed that subclasses will also set it to a
variable of the correct class (e.g. char[]) for ease of access as well.
Copying of existing contents is managed by this superclass.
- Specified by:
newArray in class DataBuffer
add
public void add(double what)
add
public void add(double... whats)
valuesToString
public java.lang.String valuesToString()
pack
public void pack()
- Overrides:
pack in class DataBuffer
clone
public java.lang.Object clone()
- Overrides:
clone in class DataBuffer
simplifyWithMinimumDistance
public void simplifyWithMinimumDistance(double granularity)
- Simplify using a minimum-point-distance granularity. This may reduce it to a single point.