|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dreizak.miniball.Utils
public class Utils
Utility methods for point sets and miniballs.
Constructor Summary | |
---|---|
Utils()
|
Method Summary | |
---|---|
static ArrayPointSet |
pointsFromStream(java.io.InputStream s)
Reads a point set from an input stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Utils()
Method Detail |
---|
public static final ArrayPointSet pointsFromStream(java.io.InputStream s)
The stream is assumed to be encoded in UTF-8 and should contain integers and double values, all separated by space or return. The first two numbers must be integers, specifying the number of points in the point set and the dimension. The following numbers are all doubles and specify the points by their Euclidean coordinates.
For example, the three two-dimensional points (0,0)
, (2,3)
, (4,5)
could
be stored as follows:
3 2 0 0 2 3 4 5
s
- the input stream to read from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |