Keyword Index

Object: SPPoint

Represents an XY position, which may be represented using integer or real values

  • distanceFrom
  • isReal - Returns true if either of the coordinates contains a real value, false if both are integers
  • x - Sets or gets the x coordinate of the point
  • y - Sets or gets the y coordinate of the point
  • Method: distanceFrom

    real distanceFrom(otherPt);

    int distanceFrom(otherPt);

    Parameters
    Name Expected Type Description
    otherPt SPPoint The target point

    Remarks:

    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

    Remarks:

    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

    Remarks:

    The return value is an integer if both coordinates contain only integer values, real otherwise