Represents an XY position, which may be represented using integer or real values
Method: distanceFrom
real distanceFrom(otherPt);
int distanceFrom(otherPt);
Parameters | ||
---|---|---|
Name | Expected Type | Description |
otherPt | SPPoint | The target point |
The return value is an integer if both points contain only integer values, real otherwise
Property: isReal
Returns true if either of the coordinates contains a real value, false if both are integers
Property: x
Sets or gets the x coordinate of the point
The return value is an integer if both coordinates contain only integer values, real otherwise
Property: y
Sets or gets the y coordinate of the point
The return value is an integer if both coordinates contain only integer values, real otherwise