public class TextCoordCartesian extends Object
| Constructor and Description |
|---|
TextCoordCartesian() |
| Modifier and Type | Method and Description |
|---|---|
String |
format(double x,
double y)
Formats the x,y coordinates into a form that is suitable
for presentation in a user interface.
|
double[] |
parse(String text)
Parses a string containing a Cartesian coordinate pair,
returning an array of dimension two giving the x and y coordinates.
|
public double[] parse(String text) throws ParseException
text - a valid stringParseException - in response to invalid inputpublic String format(double x, double y)
x - a valid floating point valuey - a valid floating point valueCopyright © 2019. All rights reserved.