public class IlpPoint extends IlvPoint implements IlpPosition
Point2D.Double, Point2D.Float
x, y
Constructor and Description |
---|
IlpPoint()
Creates a new point located at (0,0).
|
IlpPoint(double x,
double y)
Creates a new point at the specified location.
|
IlpPoint(IlvPoint p)
Creates a new point by copying an existing point.
|
IlpPoint(String s)
Creates a new point by parsing a string.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Copies the point.
|
boolean |
equals(Object other)
Tests for equality.
|
static Object |
valueOf(String s)
Creates a new point by parsing a string.
|
equalsOrNear, floor, move, toString, translate, xFloor, yFloor
getX, getY, setLocation
distance, distance, distance, distanceSq, distanceSq, distanceSq, hashCode, setLocation
public IlpPoint()
public IlpPoint(double x, double y)
x
- The x coordinate.y
- The y coordinate.public IlpPoint(IlvPoint p)
public IlpPoint(String s) throws IllegalArgumentException
Point is created from String formed as x,y
for instance 120,50
.
Throws an exception if the string cannot be parsed as a point.
s
- The String
containing the point.IllegalArgumentException
- if the string does not
contain a point that can be parsed.public static Object valueOf(String s) throws IllegalArgumentException
s
- The String
containing the point.IllegalArgumentException
- if the string does not
contain a point that can be parsed.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.